QDBusObjectPath 类

QDBusObjectPath 类使程序员能够标识由 D-Bus 类型系统提供的 OBJECT_PATH 类型。 更多...

头: #include <QDBusObjectPath>
qmake: QT += dbus
Since: Qt 4.2

该类在 Qt 4.2 引入。

公共函数

QDBusObjectPath (const QString & path )
QDBusObjectPath (QLatin1String path )
QDBusObjectPath (const char * path )
QDBusObjectPath ()
QString path () const
void setPath (const QString & path )
void swap (QDBusObjectPath & other )
QVariant operator QVariant () const

详细描述

另请参阅 Qt D-Bus 类型系统 .

成员函数文档编制

QDBusObjectPath:: QDBusObjectPath (const QString & path )

Constructs a new object path from the given path .

QDBusObjectPath:: QDBusObjectPath ( QLatin1String path )

Constructs a new object path from the given path .

QDBusObjectPath:: QDBusObjectPath (const char * path )

Constructs a new object path from the given path .

另请参阅 setPath ().

QDBusObjectPath:: QDBusObjectPath ()

Constructs a new object path.

QString QDBusObjectPath:: path () const

Returns this object path.

另请参阅 setPath ().

void QDBusObjectPath:: setPath (const QString & path )

Assigns the value of the given path to this object path.

另请参阅 path ().

void QDBusObjectPath:: swap ( QDBusObjectPath & other )

交换此 QDBusObjectPath 实例与 other .

QVariant QDBusObjectPath:: operator QVariant () const

Implicit cast to QVariant 。相当于调用 QVariant::fromValue () with this object as argument.

该函数在 Qt 5.14 引入。