title: Selecting from all available serial ports using Qt GUI
body: <p>I could not find a conclusive answer to my issue so I decided to post my first question on this site. I'm fairly new to programming and have been using Qt for a couple of months now. 
  My code communicates with a microcontroller via serial ports, however the available port differs from pc to pc. I'm displaying the number of ports available with the code;</p>
  
  <pre><code>qDebug() &lt;&lt; "Number of serial ports:" &lt;&lt; QSerialPortInfo::availablePorts().count(); 
  </code></pre>
  
  <p>My question is: how can I display the name of all the available ports eg <code>"COM 10, 17. 22, etc"</code> and then show them in my GUI. What I eventually hope to do is have a combo box that can be dynamically populated with the available ports, I have one that switches between a couple ports at the moment but these are fixed ports corresponding to particular computers.</p>