Regarding Projector Programming using QT
-
wrote on 24 Nov 2019, 22:25 last edited by
-
Your MainWindow class does not have such a signal, it's one from the QSerialPort.
-
wrote on 24 Nov 2019, 23:28 last edited by
When I click on the push button the function on_pushButton_clicked is called and then I call the Qserialport to check the error. I think the code is written correctly.
What's your take?
-
When I click on the push button the function on_pushButton_clicked is called and then I call the Qserialport to check the error. I think the code is written correctly.
What's your take?
@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...
-
@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...
wrote on 25 Nov 2019, 08:48 last edited bythis 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? -
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?@JonB Yes, new connect syntax would help here, unless MainWindow has a signal with exact same signature :-)
-
wrote on 10 Jan 2020, 06:17 last edited by
Guys can we send two commands to two serial ports concurrently using QT?
-
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.
-
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.
wrote on 11 Jan 2020, 08:29 last edited byThis post is deleted!