[Qt-interest] Force the emission of a signal
Ian Thomson
Ian.Thomson at iongeo.com
Fri Mar 20 18:04:30 CET 2009
Hi,
You can connect a signal to a signal. It's documented here:
http://doc.trolltech.com/4.5/qobject.html#connect
It's true that this isn't made so obvious in the signal slot documentation.
The example code pasted by Thiago is able to hook in to a class which
you don't have access to. It is interesting but it is a horrible hack. I
would certainly recommend the private/friend idea if you want a safe way
of doing what you ask.
Cheers,
Ian.
More information about the Qt-interest-old
mailing list