connect between two classes
Unsolved
India
-
hello ,
can any one have idea to connect two different class form QOBJECT::connect
i want to connect two classes from connect option... -
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.
-
Hi,
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.