QDBusObjectPath Class
Die Klasse QDBusObjectPath ermöglicht es dem Programmierer, den vom D-Bus-Typensystem bereitgestellten OBJECT_PATH-Typ zu identifizieren. Mehr...
Kopfzeile: | #include <QDBusObjectPath> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS DBus) target_link_libraries(mytarget PRIVATE Qt6::DBus) |
qmake: | QT += dbus |
Öffentliche Funktionen
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 |
Verwandte Nicht-Mitglieder
(since 6.8) QDebug | operator<<(QDebug dbg, const QDBusObjectPath &path) |
Siehe auch Das Qt D-Bus Typsystem.
Dokumentation der Mitgliedsfunktionen
[noexcept]
QDBusObjectPath::QDBusObjectPath()
Konstruiert einen neuen Objektpfad.
[explicit]
QDBusObjectPath::QDBusObjectPath(QLatin1StringView path)
Konstruiert einen neuen Objektpfad aus der Latin-1-Zeichenkette, die von path angezeigt wird.
[explicit]
QDBusObjectPath::QDBusObjectPath(const QString &path)
Konstruiert einen neuen Objektpfad aus dem angegebenen path.
[explicit]
QDBusObjectPath::QDBusObjectPath(const char *path)
Konstruiert einen neuen Objektpfad aus dem angegebenen path.
Siehe auch setPath().
QString QDBusObjectPath::path() const
Gibt diesen Objektpfad zurück.
Siehe auch setPath().
void QDBusObjectPath::setPath(const QString &path)
Weist diesem Objektpfad den Wert des angegebenen path zu.
Siehe auch path().
[noexcept]
void QDBusObjectPath::swap(QDBusObjectPath &other)
Tauscht diesen Objektpfad mit other aus. Dieser Vorgang ist sehr schnell und schlägt nie fehl.
QVariant QDBusObjectPath::operator QVariant() const
Impliziter Cast nach QVariant. Entspricht dem Aufruf von QVariant::fromValue() mit diesem Objekt als Argument.
Verwandte Nicht-Mitglieder
[since 6.8]
QDebug operator<<(QDebug dbg, const QDBusObjectPath &path)
Schreibt den Inhalt von path nach dbg.
Diese Funktion wurde in Qt 6.8 eingeführt.
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.