En esta página

QDBusObjectPath Class

La clase QDBusObjectPath permite al programador identificar el tipo OBJECT_PATH que ofrece el sistema de tipos de D-Bus. Más información...

Encabezado: #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 El sistema de tipos de la « Qt D-Bus ».

Documentación de las funciones de miembro

[noexcept] QDBusObjectPath::QDBusObjectPath()

Crea una nueva ruta de objeto.

[explicit] QDBusObjectPath::QDBusObjectPath(QLatin1StringView path)

Crea una nueva ruta de objeto a partir de la cadena en formato Latin-1 que se muestra en path.

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

Crea una nueva ruta de objeto a partir de la ruta dada path.

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

Crea una nueva ruta de objeto a partir del objeto path proporcionado.

Véase también setPath().

QString QDBusObjectPath::path() const

Devuelve esta ruta de objeto.

Véase también ` setPath()`.

void QDBusObjectPath::setPath(const QString &path)

Asigna el valor de la propiedad « path » indicada a esta ruta de objeto.

Véase también ` path()`.

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

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

QDBusObjectPath::operator QVariant() const

Conversión implícita a ` QVariant`. Equivalente a llamar a ` QVariant::fromValue()` con este objeto como argumento.

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