変更点Qt State Machine
Qt 6 は、フレームワークをより効率的で使いやすくするための意識的な努力の結果です。
私たちは各リリースにおいて、すべてのパブリックAPIのバイナリとソースの互換性を維持しようと努めています。しかし、Qt をより良いフレームワークにするために避けられない変更もあります。
このトピックでは、Qt State Machine モジュールにおけるそれらの変更点を要約し、それらを扱うためのガイダンスを提供します。
変更点
QtStateMachine モジュールは、一般的に言って Qt5 とソース互換性があります。
QSignalTransition
QSignalTransition::senderObject() ゲッターと関連するQ_PROPERTY は、constQObject* も使用するようになりました。これらは、constQObject* をパラメータとして受け取るセッターQSignalTransition::setSenderObject(const QObject*) との整合が良くなりました。
ビルドシステム
一般的な Qt 6 と同様に、Qt State Machine モジュールは qmake に加えて cmake もサポートしています。
QML インポート
QML インポートのバージョン管理は、最新版を使用しない特別な理由がない限り、任意です。一般的に、バージョン管理されたインポートはバージョン 5.8 から 6.x まで動作します。
© 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.