Qt - Usage of the QDBusPendingCallWatcher
thiago at kde.org
Wed Jul 6 01:11:10 PDT 2011
Em Tuesday, 5 de July de 2011, às 21:58:58, Bogdan Lotko escreveu:
> Is it allowed to:
> - disconnect the QDBusPendingCallWatcher instance and its signal from
> the slot method in the slot method itself, when triggered by the
> QDBusPendingCallWatcher instance?
Do you mean you want to call QObject::disconnect? Should be fine.
> - delete the QDBusPendingCallWatcher instance in the according slot
> method itself, when triggered by the QDBusPendingCallWatcher instance?
Deleting the sender of the signal you're handling is always a bad idea. I
recommend to deleteLater() instead.
> If not - how to do the above operations?
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
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
Size: 190 bytes
Desc: This is a digitally signed message part.
More information about the dbus