QDBusObjectPath Class
Die Klasse „QDBusObjectPath“ ermöglicht es dem Programmierer, den vom D-Bus-Typsystem bereitgestellten Typ „OBJECT_PATH“ zu identifizieren. Mehr...
| Header: | #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) |
| operator QVariant() const |
Zugehörige Nicht-Mitglieder
(since 6.8) QDebug | operator<<(QDebug dbg, const QDBusObjectPath &path) |
Siehe auch Das Typensystem von „ Qt D-Bus “.
Dokumentation zu Mitgliedsfunktionen
[noexcept] QDBusObjectPath::QDBusObjectPath()
Erstellt einen neuen Objektpfad.
[explicit] QDBusObjectPath::QDBusObjectPath(QLatin1StringView path)
Erstellt einen neuen Objektpfad aus der Latin-1-Zeichenkette, die von „ path “ angezeigt wird.
[explicit] QDBusObjectPath::QDBusObjectPath(const QString &path)
Erstellt einen neuen Objektpfad aus dem angegebenen ` path`.
[explicit] QDBusObjectPath::QDBusObjectPath(const char *path)
Erstellt 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 gegen „ other “ aus. Dieser Vorgang ist sehr schnell und schlägt niemals fehl.
QDBusObjectPath::operator QVariant() const
Implizite Typumwandlung zu ` 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 “ in „ dbg “.
Diese Funktion wurde in Qt 6.8 eingeführt.
© 2026 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.