Qt - Usage of the QDBusPendingCallWatcher
Thiago Macieira
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:
> Hello,
>
> 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
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20110706/0d475031/attachment.pgp>
More information about the dbus
mailing list