[Qt-interest] Signals and slots question
Thiago Macieira
thiago at kde.org
Sat Feb 20 08:34:17 CET 2010
Em Sábado 20. Fevereiro 2010, às 07.59.03, Peter escreveu:
> Hi,
>
> I've been using qt's signals and slots for a while now. However, I have
> also used other implementations of the observer pattern which work
> slightly differently.
>
> In qt you must connect a slot to a signal but from what i know the object
> sending the signal must exist already (you connect one object's signal to
> another object's slot). I have used other implementations where the signals
> are defined independently of any objects. That way anything could register
> themselves with the signal and any other object could fire that signal off.
>
> Is there anyway to do that using qt's signals and slots system?
Short answer: no.
Long answer: no, there isn't.
:-)
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100220/65a797b3/attachment.bin
More information about the Qt-interest-old
mailing list