이 페이지에서

변경 사항 Qt D-Bus

Qt 6의 변경 사항은 프레임워크를 더 효율적이고 사용하기 쉽게 만들기 위한 의도적인 노력의 결과입니다.

저희는 각 릴리스에서 모든 공개 API에 대해 바이너리 및 소스 호환성을 유지하기 위해 노력하고 있습니다. 하지만 Qt를 더 나은 프레임워크로 만들기 위한 노력의 일환으로 일부 변경 사항은 불가피했습니다.

이 항목에서는 Qt DBus의 변경 사항을 요약하고, 이를 처리하는 방법에 대한 지침을 제공합니다.

API 변경 사항

QtDBus 모듈은 기본적인 통합 및 정리를 거쳤습니다. Qt 6으로 전환하는 데 필요한 포팅 작업은 최소화될 것입니다.

QDBusMessage 클래스

Qt6에서는 인자 크기가 고정된 QDBusMessage::call() 및 QDBusMessage::asyncCall() 메서드가 제거되었습니다.

QDBusArgument 클래스

QHash, QMap 및 QList 에 대한 QDBusArgument::operator<<() 특수화가 연산자 결합 컨테이너에 대한 공통 특수화로 통합되었습니다.

QDBusConnection 클래스

Qt6에서는 QDBusConnection::sender() 함수가 제거되었습니다.

QDBusMessage 클래스

QDBusMessage::createErrorReply() 함수는 이제 QString 및 name 인수를 값으로 받는 대신 const 참조로 받습니다.

QDBusPendingReply 클래스

QDBusPendingReply 이제 8개 이상의 템플릿 매개변수를 지원하기 위해 가변 인자 템플릿 클래스로 변경되었습니다. 템플릿 매개변수는 응답 데이터의 내용을 추출하는 데 사용될 유형입니다.

© 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.