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 파일은 현재 바이너리 디렉터리에 저장되며, 헤더와 동일한 기본 이름을 갖습니다. 선택 사항인 두 번째 인수로 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.