Details
-
Bug
-
Resolution: Done
-
P4: Low
-
5.3.1
-
None
-
Windows 7 (x64), Qt Desktop
Description
If a new QSerialPortInfo object is created using the default constructor, isNull() returns false instead of true:
QSerialPortInfo info;
info.isNull(); // returns false (should be true)
The isNull()-method is important for us to check the result of a method that tries to find a serial port by vendor ID and/or product ID:
QSerialPortInfo portInfo = findPortInfo(vendorId, productId); if (portInfo.isNull()) { // port not found }
Attachments
For Gerrit Dashboard: QTBUG-41262 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
95702,3 | Fix QSerialPortInfo::isNull() method | 5.3 | qt/qtserialport | Status: ABANDONED | 0 | 0 |
97062,1 | WIP Deep refactor of QSPI | dev | qt/qtserialport | Status: ABANDONED | 0 | 0 |
100501,9 | Fix QSPI::isNull() | 5.4 | qt/qtserialport | Status: MERGED | +2 | 0 |
100566,3 | Fix QSPI::isNull() | qt4-dev | qt/qtserialport | Status: MERGED | +2 | 0 |