QDBus Namespace
QDBus 名前空間には、Qt D-Bus モジュール全体で使用される雑多な識別子が含まれています。詳細...
ヘッダー | #include <QDBus> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS DBus) target_link_libraries(mytarget PRIVATE Qt6::DBus) |
qmake: | QT += dbus |
タイプ
enum | CallMode { NoBlock, Block, BlockWithGui, AutoDetect } |
型の説明
enum QDBus::CallMode
この列挙型は、関数呼び出しのさまざまな配置方法を記述する。有効なモードは
定数 | 値 | 説明 |
---|---|---|
QDBus::NoBlock | 0 | 呼び出しは行うが、応答を待たない(応答の内容は破棄される)。 |
QDBus::Block | 1 | 応答を待つためにイベント・ループを使用せず、待機中にネットワーク操作をブロックする。これは、関数が戻るまでユーザーインターフェースが更新されないことを意味します。 |
QDBus::BlockWithGui | 2 | Qt のイベントループを使って応答を待ちます。これは、ユーザーインターフェースが応答し続ける(入力イベントを処理する)ことを意味しますが、シグナル配信や他のD-Busメソッド呼び出しのような他のイベントが発生する可能性があることも意味します。 |
QDBus::AutoDetect | 3 | 呼び出された関数に応答があるかどうかを自動的に検出します。 |
BlockWithGuiを使用する場合、アプリケーションはどの関数でもリエントランシーに備える必要があります。
© 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.