Sur cette page

QDBusObjectPath Class

La classe QDBusObjectPath permet au programmeur d'identifier le type OBJECT_PATH fourni par le système de types D-Bus. En savoir plus...

En-tête : #include <QDBusObjectPath>
CMake : find_package(Qt6 REQUIRED COMPONENTS DBus)
target_link_libraries(mytarget PRIVATE Qt6::DBus)
qmake : QT += dbus

Fonctions publiques

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
(since 6.8) QDebug operator<<(QDebug dbg, const QDBusObjectPath &path)

Description détaillée

Voir aussi Le système de types d'Qt D-Bus .

Documentation sur les fonctions membres

[noexcept] QDBusObjectPath::QDBusObjectPath()

Crée un nouveau chemin d'objet.

[explicit] QDBusObjectPath::QDBusObjectPath(QLatin1StringView path)

Crée un nouvel objet « path » à partir de la chaîne de caractères Latin-1 affichée par path.

[explicit] QDBusObjectPath::QDBusObjectPath(const QString &path)

Crée un nouvel objet « path » à partir de l'path.

[explicit] QDBusObjectPath::QDBusObjectPath(const char *path)

Crée un nouveau chemin d'objet à partir de l'path donné.

Voir aussi setPath().

QString QDBusObjectPath::path() const

Renvoie le chemin d'accès à cet objet.

Voir aussi setPath().

void QDBusObjectPath::setPath(const QString &path)

Attribue la valeur de l'path on fournie à ce chemin d'accès à l'objet.

Voir aussi path().

[noexcept] void QDBusObjectPath::swap(QDBusObjectPath &other)

Permute le chemin d'accès de cet objet avec celui de other. Cette opération est très rapide et ne rencontre jamais d'échec.

QDBusObjectPath::operator QVariant() const

Conversion implicite vers ` QVariant`. Équivaut à appeler ` QVariant::fromValue()` avec cet objet comme argument.

Éléments non membres associés

[since 6.8] QDebug operator<<(QDebug dbg, const QDBusObjectPath &path)

Écrit le contenu de ` path ` dans ` dbg`.

Cette fonction a été introduite dans Qt 6.8.

© 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.