En esta página

QDBusObjectPath Class

La clase QDBusObjectPath permite al programador identificar el tipo OBJECT_PATH proporcionado por el sistema de tipos D-Bus. Más...

Cabecera: #include <QDBusObjectPath>
CMake: find_package(Qt6 REQUIRED COMPONENTS DBus)
target_link_libraries(mytarget PRIVATE Qt6::DBus)
qmake: QT += dbus

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

Descripción detallada

Véase también Sistema de tipos Qt D-Bus .

Documentación de Funciones Miembro

[noexcept] QDBusObjectPath::QDBusObjectPath()

Construye una nueva ruta de objeto.

[explicit] QDBusObjectPath::QDBusObjectPath(QLatin1StringView path)

Construye una nueva ruta de objeto a partir de la cadena Latin-1 vista por path.

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

Construye una nueva ruta de objeto a partir de la dirección path.

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

Construye una nueva ruta de objeto a partir de la dirección path.

Véase también setPath().

QString QDBusObjectPath::path() const

Devuelve la ruta de este objeto.

Véase también setPath().

void QDBusObjectPath::setPath(const QString &path)

Asigna el valor de path a la ruta de este objeto.

Véase también path().

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

Intercambia la ruta de este objeto con other. Esta operación es muy rápida y nunca falla.

QDBusObjectPath::operator QVariant() const

Cast implícito a QVariant. Equivale a llamar a QVariant::fromValue() con este objeto como argumento.

No miembros relacionados

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

Escribe el contenido de path en dbg.

Esta función se introdujo en 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.