13-05-2021
Qt Signal Slot Return Value
I'm relatively new to Qt signal slot so I might have gotten this wrong, anyway here it is: A signal is basically used to trigger a slot and a slot is a function that can be either called directly or triggered by a signal, and a signal has to be connected to a slot in order to trigger it. In return, any C signal can be received by a QML object using signal handlers. Here is a QML component with a signal named qmlSignal that is emitted with a string-type parameter. This signal is connected to a C object's slot using QObject::connect , so that the cppSlot method is called whenever the qmlSignal is emitted.