QDBusObjectPath Class

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

詳細説明

Qt D-Bus 型システムも参照のこと

メンバ関数のドキュメント

[noexcept] QDBusObjectPath::QDBusObjectPath()

新しいオブジェクトパスを構築します。

[explicit] QDBusObjectPath::QDBusObjectPath(QLatin1StringView path)

path で表示 さ れてい る Latin-1 文字列か ら 、 新 し いオブジ ェ ク ト パ ス を構築 し ます。

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

与えられたpath から新しいオブジェクトパスを構築します。

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

与えられたpath から新しいオブジェクトパスを構築します。

setPath()も参照

QString QDBusObjectPath::path() const

このオブジェクトのパスを返します。

setPath()も参照ください

void QDBusObjectPath::setPath(const QString &path)

与えられたpath の値をこのオブジェクトパスに割り当てます。

path()も参照

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

このオブジェクトパスをother と入れ替える。この操作は非常に高速で、失敗することはない。

QVariant QDBusObjectPath::operator QVariant() const

QVariant への暗黙のキャスト。 このオブジェクトを引数としてQVariant::fromValue() を呼び出すのと同等。

関連する非会員

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

path の内容をdbg に書き込みます。

この関数は Qt 6.8 で導入されました。

© 2025 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.