從 Header (頭) 文件生成 D-Bus 接口。
命令的定義在
DBus
組件對於
Qt6
包。加載包采用:
find_package(Qt6 REQUIRED COMPONENTS DBus)
該命令在 Qt 6.0 引入。
qt_generate_dbus_interface(header
[customName]
[OPTIONS options]
)
若
無版本命令
被禁用,使用
qt6_generate_dbus_interface()
代替。它支持如此命令的一組相同自變量。
剖析的 C++ 源 (或頭文件) 包含 QObject -derived class declaration and generates a file containing the D-Bus Introspection XML.
By default, the generated XML file is stored in the current binary directory, and has the same base name as the header. You can specify a different name or path by adding
customName
as an optional second argument.
函數設置調用
qdbuscpp2xml
命令行工具。可以為工具進一步設置自變量後於
OPTIONS
.