[Qt-interest] QtDBus and Threads
Will Rutherdale (rutherw)
rutherw at cisco.com
Mon Mar 1 21:24:19 CET 2010
Hi.
I tried deriving a class from QObject and exposing an instance to dbus
using QDBusConnection::registerObject(). I have done this lots of
times, but this time was different: I had moved the object to a
different thread.
It didn't work. When I tried looking at it using qdbus, that program
got stuck.
The idea here was to be able to expose methods of an object not on the
main thread to dbus. That way it could do work and not tie up the event
loop for the main thread.
Anyone know if this is supposed to work? Or is QtDBus usage restricted
to the main thread?
I am currently using Qt 4.5.
-Will
More information about the Qt-interest-old
mailing list