Regarding Projector Programming using QT
-
Your MainWindow class does not have such a signal, it's one from the QSerialPort.
-
@Prath said in Regarding Projector Programming using QT:
What's your take?
Your connect is wrong: MainWindow does NOT have signal error(QSerialPort::QSerialPort), this signal is in QSerialPort, so not in "this" but in "serial".
And please do not post screen-shots, copy paste your code...
-
this signal is in QSerialPort, so not in "this" but in "serial".
Is this a case where changing to new-style signal/slot syntax would generate an error for the wrong "context" variable? Or, would testing the return result from the
connect()
or from https://doc.qt.io/qt-5/qmetaobject-connection.html#operator-bool in code tell the user if the connection has failed because of the wrong context? -
If you mean use several QSerialPorts at the same time in one application then yes, no problem with that. If you mean something else, please give more details.