Wich class replace QextSerial enumerator ? SOLVED
-
Hi Hall,
It seems that with QT51 and QserialPort the class QextSerialEnumerator is not available as it was in older version. (i have installed qserialPort, the examples works perfectly but i can't find qextserialenumerator.h on my hard disk, so my project does not compile.
What is now the mean to find the available COM ?
Thanks
Montin
-
Hi MONTIN.
QextSerialEnumerator not belongs to QSerialPort. Take a look to a "Wiki":http://qt-project.org/wiki/QtSerialPort .
For finding available ports you can use:
@foreach (const QSerialPortInfo &info, QSerialPortInfo::availablePorts()) {
qDebug() << "Name : " << info.portName();
qDebug() << "Description : " << info.description();
qDebug() << "Manufacturer: " << info.manufacturer();// Example use QSerialPort QSerialPort serial; serial.setPort(info); if (serial.open(QIODevice::ReadWrite)) serial.close(); }@
-
Hi qxoz,
Thanks. I try this
Montin
-
Thanks it works.
God bless you qxoz !
Montin
-
You're welcome :)
Also, can you please add [Solved] to caption of thread. -
[quote author="MONTIN" date="1391763097"]Thanks it works.
God bless you qxoz !
Montin[/quote]
-
-
I meant change name of thread "wich class replace QextSerial enumerator ?" to "[Solved]wich class replace QextSerial enumerator ?"
-
Shame on me but how can i do that ?
-
Edit first post of this thread.