qt_generate_dbus_interface
ヘッダーファイルからDバスインターフェースを生成する。
このコマンドは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 Introspection XML を含むファイルを生成します。
デフォルトでは、生成された XML ファイルは現在のバイナリ・ディレクトリーに保存され、ヘッダーと同じベース名を持ちます。オプションの第 2 引数にcustomName
を追加することで、別の名前やパスを指定できます。
オプション
この関数は、qdbuscpp2xml
コマンドラインツールの呼び出しを設定します。このツールへのさらなる引数は、OPTIONS
の後に設定できます。
© 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.