変更点Qt D-Bus

Qt 6 は、フレームワークをより効率的で使いやすくするための意識的な努力の結果です。

私たちは各リリースにおいて、すべてのパブリックAPIのバイナリとソースの互換性を維持しようと努めています。しかし、Qt をより良いフレームワークにするために避けられない変更もあります。

このトピックでは、Qt DBus におけるそれらの変更点を要約し、それらを扱うためのガイダンスを提供します。

API の変更

QtDBus モジュールは、いくつかの基本的な整理とクリーンアップが行われました。Qt6 に移行するための移植作業は最小限で済むはずです。

QDBusMessage クラス

QDBusMessage::call() メソッドと QDBusMessage::asyncCall() メソッドの引数のサイズが Qt6 では削除されました。

QDBusArgument クラス

QDBusArgument::operator<<() のQHash,QMap,QList 用の特殊化が、連想コンテナ用の共通の特殊化に統一されました。

QDBusConnection クラス

QDBusConnection::sender() 関数が Qt6 で削除されました。

QDBusMessage クラス

QDBusMessage::createErrorReply() 関数は、QString name 引数を値で取る代わりに const 参照で取るようになりました。

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.