Doc: Add info about QDBusConnection::ExportChildObjects
Child objects need QObject::objectName. Fixes: QTBUG-17740 Change-Id: Iebf8bcd7252f8a441d7c265aae3d4dd81b3cfa54 Reviewed-by: Paul Wicking <paul.wicking@qt.io> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>bb10
parent
56029e1e98
commit
0c1d23db7b
|
|
@ -870,8 +870,12 @@ bool QDBusConnection::disconnect(const QString &service, const QString &path, co
|
|||
This function does not replace existing objects: if there is already an object registered at
|
||||
path \a path, this function will return false. Use unregisterObject() to unregister it first.
|
||||
|
||||
The ExportChildObjects flag exports child objects on D-Bus based on the
|
||||
path of the registered objects and the QObject::objectName of the child.
|
||||
Therefore, it is important for the child object to have an object name.
|
||||
|
||||
You cannot register an object as a child object of an object that
|
||||
was registered with QDBusConnection::ExportChildObjects.
|
||||
was registered with ExportChildObjects.
|
||||
*/
|
||||
bool QDBusConnection::registerObject(const QString &path, QObject *object, RegisterOptions options)
|
||||
{
|
||||
|
|
@ -890,8 +894,12 @@ bool QDBusConnection::registerObject(const QString &path, QObject *object, Regis
|
|||
This function does not replace existing objects: if there is already an object registered at
|
||||
path \a path, this function will return false. Use unregisterObject() to unregister it first.
|
||||
|
||||
The ExportChildObjects flag exports child objects on D-Bus based on the
|
||||
path of the registered objects and the QObject::objectName of the child.
|
||||
Therefore, it is important for the child object to have an object name.
|
||||
|
||||
You cannot register an object as a child object of an object that
|
||||
was registered with QDBusConnection::ExportChildObjects.
|
||||
was registered with ExportChildObjects.
|
||||
*/
|
||||
bool QDBusConnection::registerObject(const QString &path, const QString &interface, QObject *object, RegisterOptions options)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue