QDBusObjectPath Class
A classe QDBusObjectPath permite que o programador identifique o tipo OBJECT_PATH fornecido pelo sistema de tipos do D-Bus. Mais...
| Cabeçalho: | #include <QDBusObjectPath> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS DBus) target_link_libraries(mytarget PRIVATE Qt6::DBus) |
| qmake: | QT += dbus |
Funções públicas
| 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 |
Não-membros relacionados
(since 6.8) QDebug | operator<<(QDebug dbg, const QDBusObjectPath &path) |
Veja também O sistema de tipos do ` Qt D-Bus `.
Documentação das funções de membro
[noexcept] QDBusObjectPath::QDBusObjectPath()
Cria um novo caminho de objeto.
[explicit] QDBusObjectPath::QDBusObjectPath(QLatin1StringView path)
Cria um novo objeto `path` a partir da string em Latin-1 visualizada por path.
[explicit] QDBusObjectPath::QDBusObjectPath(const QString &path)
Cria um novo objeto `path` a partir do ` path` fornecido.
[explicit] QDBusObjectPath::QDBusObjectPath(const char *path)
Cria um novo objeto `path` a partir do ` path` fornecido.
Veja também setPath().
QString QDBusObjectPath::path() const
Retorna esse caminho de objeto.
Veja também setPath().
void QDBusObjectPath::setPath(const QString &path)
Atribui o valor do ` path ` fornecido a este caminho de objeto.
Veja também path().
[noexcept] void QDBusObjectPath::swap(QDBusObjectPath &other)
Troca o caminho deste objeto por other. Essa operação é muito rápida e nunca falha.
QDBusObjectPath::operator QVariant() const
Conversão implícita para ` QVariant`. Equivalente a chamar ` QVariant::fromValue()` com este objeto como argumento.
Não-membros relacionados
[since 6.8] QDebug operator<<(QDebug dbg, const QDBusObjectPath &path)
Grava o conteúdo de ` path ` em ` dbg`.
Essa função foi introduzida no 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.