QDBusObjectPath Class

The QDBusObjectPath class enables the programmer to identify the OBJECT_PATH type provided by the D-Bus typesystem. More...

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

Public Functions

QDBusObjectPath(QLatin1String path)
QDBusObjectPath(const QString &path)
QDBusObjectPath(QString &&p)
QString path() const
operator QVariant() const

Detailed Description

The QDBusObjectPath class enables the programmer to identify the OBJECT_PATH type provided by the D-Bus typesystem.

See also The Qt D-Bus Type System.

Member Function Documentation

QDBusObjectPath::QDBusObjectPath(QLatin1String path)

Constructs a new object path from the given path.

QDBusObjectPath::QDBusObjectPath(const QString &path)

Constructs a new object path from the given path.

QDBusObjectPath::QDBusObjectPath(QString &&p)

Default constructs an instance of QDBusObjectPath.

QString QDBusObjectPath::path() const

Returns this object path.

See also setPath().

QDBusObjectPath::operator QVariant() const

Implicit cast to QVariant. Equivalent to calling QVariant::fromValue() with this object as argument.

This function was introduced in Qt 5.14.