Hi Adam, thank you very much. This function is exactly what I need and it works fine.
Best regards, Andre Am 30.06.2014 14:58, schrieb Adam Light: > > > > On Mon, Jun 30, 2014 at 2:36 AM, André Hartmann > <andre.hartm...@iseg-hv.de <mailto:andre.hartm...@iseg-hv.de>> wrote: > > Hello all, > > I'd like to have a QComboBox with the available serial ports on my > system. Populating the box at program start is easy, but I'd like to > detect USB serial ports that are connected during run time. > > The only think I found is focusInEvent, but it seems my port list is > updated twice, on opening the list and on closing it (Windows 7, Qt > 4.8.2). Is there a better way to do? > > I'd really like to have something like QComboBox::onOpened(). > Borland C++ Builder had OnDropDown which for that purpose. > > > Check out the virtual method QComboBox::showPopup(). > > http://qt-project.org/doc/qt-4.8/qcombobox.html#showPopup > > Adam > -- Best regards / Mit freundlichen Grüßen André Hartmann, Dipl.-Ing. (FH) Software Project Manager iseg Spezialelektronik GmbH | phone: ++49 (0)351 26996-43 Bautzner Landstr. 23 | fax: ++49 (0)351 26996-21 D-01454 Radeberg / Rossendorf | web: www.iseg-hv.com Geschäftsführer / Managing director: Dr. F. Gleisberg, Dr. J. Pöthig Amtsgericht / Lower district court: Dresden HRB 16250 Ust.-Id.-Nr. / VAT-ID: DE812508942 Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest