Hi,

i am trying to create a Windows-App, based on QT & QextSerialPort which should finaly be used to control a digital power supply.

Basicly the Qt-Core (UI, core-functions etc..) does work and now i need to integrate QextSerialPort into my project.

I would like to use QextSerialEnumerator (part of the latest QextSerialPort) to check the Windows host system for existing serial ports in the first step. The enumerator example does that in a very basic method. Based on that source i want to do my first step and add this function to my application.

quote out of the enumerator example:
Qt Code:
  1. QList<QextPortInfo> ports = QextSerialEnumerator::getPorts();
  2. printf("List of ports:\n");
  3. for (int i = 0; i < ports.size(); i++)
  4. {
  5. printf("port name: %s\n", ports.at(i).portName.toLocal8Bit().constData());
  6. printf("friendly name: %s\n", ports.at(i).friendName.toLocal8Bit().constData());
  7. printf("physical name: %s\n", ports.at(i).physName.toLocal8Bit().constData());
  8. printf("enumerator name: %s\n", ports.at(i).enumName.toLocal8Bit().constData());
  9. printf("===================================\n\n");
  10. }
To copy to clipboard, switch view to plain text mode 
I have compiled the enumerator example which works as standalone app.
Well now...howto include it

To be honest...i am wondering what is the best way to integrate 3rd-party source to my environment.

Is it possible to create a custom folder which contains all QextSerialPort related files and just include them to my project (.pro file i guess) or should i start somehow different ?

Hints are highly appreciated.
best regards
ape