speaking of signals and slots.... can i connect my custom signals of a different class to the custom slots of a different class...??
speaking of signals and slots.... can i connect my custom signals of a different class to the custom slots of a different class...??
actually i tried connecting two classes through custom signals and custom slots, one class was inheriting QWidget and the other was inheriting QGLWidget... but the connection was not working... now,is such a connection possible...??? if no please suggest some other alternative... thanks...
Yes, it is possible. Just make sure that both class declarations contain required Q_OBJECT macro and that you declare signals and slots properly. Take a look at the debug output. QObject::connect() outputs a detailed warning when it fails to establish signal-slot connection.
J-P Nurmi
got it... thanx mate...
Bookmarks