OKie that was because the code was written in some other pc and i was not able to send the exact code which i tried.
---------------------------------------------------------------------------------!
now with those error being corrected!
Please tell me how to handle a signal emitted by a slot of one class, by a slot of some other class?
should i need to inherit the class that emits the signal or create an object of the class that emits the signal?
consider the following situation where i have a class that reads the socket for data.
whenever there is a data arrived at the port readyread() signal will be emitted and i connect this signal to the slot of the same class. This slots reads the header of the data. based on the header i l emit a signal.
This signal will be captured by any class that has a slot connected to this particular signal.
In this case who will be the sender of the signal to be filled in the connect call.
in genral if there is a base class slot that emits a signal how will i handle the signal thru the connect statement in the derived class?
connect(?,SIGNAL(baseclass signal1()),this,SLOT(onbaseclasssignal1())
connect(?,SIGNAL(baseclass signal1()),this,SLOT(onbaseclasssignal1())
To copy to clipboard, switch view to plain text mode
I am a newbie to QT.
can anyone please enlighten me on this.....!
Bookmarks