변경 사항 Qt D-Bus
Qt 6는 프레임워크를 보다 효율적이고 사용하기 쉽게 만들기 위한 의식적인 노력의 결과입니다.
각 릴리스에서 모든 공개 API에 대해 바이너리 및 소스 호환성을 유지하려고 노력합니다. 하지만 Qt를 더 나은 프레임워크로 만들기 위해 몇 가지 변경이 불가피했습니다.
이 항목에서는 Qt DBus의 이러한 변경 사항을 요약하고 이를 처리하기 위한 지침을 제공합니다.
API 변경 사항
QtDBus 모듈은 몇 가지 기본적인 통합 및 정리 작업을 거쳤습니다. Qt6로 전환하기 위해 최소한의 포팅 작업만 하면 됩니다.
QDBusMessage 클래스
Qt6에서 고정된 크기의 인수를 사용하는 QDBusMessage::call() 및 QDBusMessage::asyncCall() 메서드가 제거되었습니다.
QDBusArgument 클래스
QHash, QMap 및 QList 에 대한 QDBusArgument::operator<<() 특수화가 연관 컨테이너에 대한 공통 특수화로 통합되었습니다.
QDBusConnection 클래스
Qt6에서 QDBusConnection::sender() 함수가 제거되었습니다.
QDBusMessage 클래스
QDBusMessage::createErrorReply() 함수는 이제 QString name
인수를 값으로 받는 대신 상수 참조로 받습니다.
QDBusPendingReply 클래스
QDBusPendingReply 는 이제 8개 이상의 템플릿 매개변수를 지원하기 위해 가변 템플릿 클래스로 변경되었습니다. 템플릿 매개변수는 응답 데이터의 내용을 추출하는 데 사용되는 유형입니다.
© 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.