It makes totally sense. My problem being that I don't know how to get the name of my newly created object.That's what the object names are for. You'll have different objects for different instances of the progress bar.
It makes totally sense. My problem being that I don't know how to get the name of my newly created object.That's what the object names are for. You'll have different objects for different instances of the progress bar.
I might have found the answer : QDBusConnection::sessionBus().interface() emits the signal serviceRegistered( const QString& ) when a new service is registered.
QDBusConnection::registerObject() takes a path to the object. The last part of the path is the object name.
I know my object name, of course. But I don't know the service name at registration time. QDBusConnection::sessionBus().interface()->serviceRegistered( const QString& ) works for me anyway.
QDBusConnection::registerService() takes a string argument where you can pass the service name.
Bookmarks