Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
connect between two classes
qt_ankit_developer last edited by
can any one have idea to connect two different class form QOBJECT::connect
i want to connect two classes from connect option...
ODБOï last edited by
this is one way to 'connect' 2 objects
Obj sender; OtherObj reciver; QObject::connect(&sender,SIGNAL(s()),&reciver,SLOT(doS())); here s() is a signal of sender and doS() is public slot of reciver.
You don't connect classes, you connect instances of them.
You have all the details in the Signals And Slots chapter of Qt's documentation.