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 ().
Returns this object path.
另请参阅 setPath ().
Assigns the value of the given path to this object path.
另请参阅 path ().
[noexcept]
void
QDBusObjectPath::
swap
(
QDBusObjectPath
&
other
)
Swaps this object path with other 。此操作非常快且从不失败。
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 引入。