qt_generate_dbus_interface
ヘッダーファイルから D-Bus インターフェースを生成します。
このコマンドは、Qt6 パッケージのDBus コンポーネントで定義されています。パッケージを次のように読み込みます:
find_package(Qt6 REQUIRED COMPONENTS DBus)このコマンドは Qt 6.0 で導入されました。
概要
qt_generate_dbus_interface(header
[customName]
[OPTIONS options]
)バージョン指定なしのコマンドが無効になっている場合は、代わりに `qt6_generate_dbus_interface() ` を使用してください。このコマンドと同じ引数セットをサポートしています。
説明
QObject から派生したクラス宣言を含む C++ ソースファイルまたはヘッダーファイルを解析し、D-Bus イントロスペクション XML を含むファイルを生成します。
デフォルトでは、生成された XML ファイルは現在のバイナリディレクトリに保存され、ヘッダーファイルと同じベース名が付けられます。オプションの 2 番目の引数として `customName ` を追加することで、別の名前やパスを指定することができます。
オプション
この関数は、qdbuscpp2xml コマンドラインツールの呼び出しを設定します。ツールへの追加の引数は、OPTIONS の後に指定できます。
© 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.