このページでは

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)
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 と入れ替えます。この操作は非常に高速で、失敗することはありません。

QDBusObjectPath::operator QVariant() const

QVariant への暗黙の型変換。このオブジェクトを引数としてQVariant::fromValue()を呼び出すのと同じです。

関連する非メンバー

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

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

この関数は 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.