QDBusObjectPath 類

QDBusObjectPath 類使程序員能夠標識由 D-Bus 類型係統提供的 OBJECT_PATH 類型。 更多...

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

公共函數

QDBusObjectPath ()
QDBusObjectPath (QLatin1StringView path )
QDBusObjectPath (const QString & path )
QDBusObjectPath (const char * path )
QString path () const
void setPath (const QString & path )
void swap (QDBusObjectPath & other )
QVariant operator QVariant () const
(從 6.8 起) QDebug operator<< (QDebug dbg , const QDBusObjectPath & path )

詳細描述

另請參閱 Qt D-Bus 類型係統 .

成員函數文檔編製

[noexcept] QDBusObjectPath:: QDBusObjectPath ()

Constructs a new object path.

[explicit] QDBusObjectPath:: QDBusObjectPath ( QLatin1StringView path )

Constructs a new object path from the Latin-1 string viewed by path .

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

Constructs a new object path from the given path .

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

Constructs a new object path from the given path .

另請參閱 setPath ().

QString QDBusObjectPath:: path () const

Returns this object path.

另請參閱 setPath ().

void QDBusObjectPath:: setPath (const QString & path )

Assigns the value of the given path to this object path.

另請參閱 path ().

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

Swaps this object path with other 。此操作很快且從不失敗。

QVariant QDBusObjectPath:: operator QVariant () const

Implicit cast to QVariant 。相當於調用 QVariant::fromValue () with this object as argument.

相關非成員

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

Writes the contents of path to dbg .

該函數在 Qt 6.8 引入。

內容

  1. 公共函數

  2. 相關非成員

  3. 詳細描述