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 (const char * path ) | |
| QDBusObjectPath (QLatin1StringView path ) | |
| QDBusObjectPath (const QString & path ) | |
| QString | path () const |
| void | setPath (const QString & path ) |
| void | swap (QDBusObjectPath & other ) |
| QVariant | operator QVariant () const |
另請參閱 Qt D-Bus 類型係統 .
Constructs a new object path.
[explicit]
QDBusObjectPath::
QDBusObjectPath
(const
char
*
path
)
Constructs a new object path from the given path .
另請參閱 setPath ().
[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 .
Returns this object path.
另請參閱 setPath ().
Assigns the value of the given path to this object path.
另請參閱 path ().
交換此 QDBusObjectPath 實例與 other .
Implicit cast to QVariant 。相當於調用 QVariant::fromValue () with this object as argument.