QDBusObjectPath Class
The QDBusObjectPath class enables the programmer to identify the OBJECT_PATH type provided by the D-Bus typesystem. More...
| Header: | #include <QDBusObjectPath> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS DBus)target_link_libraries(mytarget PRIVATE Qt6::DBus) |
| qmake: | QT += dbus |
Public Functions
| QDBusObjectPath() | |
| QDBusObjectPath(QLatin1StringView path) | |
| QDBusObjectPath(const QString &path) | |
| QDBusObjectPath(const char *path) | |
| QString | path() const |
| void | setPath(const QString &path) |
| void | swap(QDBusObjectPath &other) |
| QVariant | operator QVariant() const |
Related Non-Members
(since 6.8) QDebug | operator<<(QDebug dbg, const QDBusObjectPath &path) |
Detailed Description
See also The Qt D-Bus Type System.
Member Function Documentation
[noexcept] QDBusObjectPath::QDBusObjectPath()
Constructs a new object path.
[explicit] QDBusObjectPath::QDBusObjectPath(QLatin1StringView path)
Constructs a new object path from the Latin-1 string viewed by path.
[explicit] QDBusObjectPath::QDBusObjectPath(const QString &path)
Constructs a new object path from the given path.
[explicit] QDBusObjectPath::QDBusObjectPath(const char *path)
Constructs a new object path from the given path.
See also setPath().
QString QDBusObjectPath::path() const
Returns this object path.
See also setPath().
void QDBusObjectPath::setPath(const QString &path)
Assigns the value of the given path to this object path.
See also path().
[noexcept] void QDBusObjectPath::swap(QDBusObjectPath &other)
Swaps this object path with other. This operation is very fast and never fails.
QVariant QDBusObjectPath::operator QVariant() const
Implicit cast to QVariant. Equivalent to calling QVariant::fromValue() with this object as argument.
Related Non-Members
[since 6.8] QDebug operator<<(QDebug dbg, const QDBusObjectPath &path)
Writes the contents of path to dbg.
This function was introduced in Qt 6.8.