PDA

View Full Version : Usage of the QDBusPendingCallWatcher



lotek
5th July 2011, 20:54
Hello,

Is it allowed to:
- disconnect the QDBusPendingCallWatcher instance and its signal from the slot method in the slot method self, when triggered by the QDBusPendingCallWatcher instance?
- delete the QDBusPendingCallWatcher instance in the according slot method self, when triggered by the QDBusPendingCallWatcher instance?

If not - how to do the above operations?

lotek
9th July 2011, 19:15
QObject::disconnect is legal within the SLOT method

for deletion of the QDBusPendingCallWatcher the deleteLater() shall be used.

Thank you Thiago Maciera !!!