QAccessibilityHints Class
QAccessibilityHints クラスには、プラットフォーム固有のアクセシビリティに関するヒントや設定が含まれています。詳細...
| ヘッダー: | #include <QAccessibilityHints> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
| qmake: | QT += gui |
| 以下より: | Qt 6.10 |
| 継承元: | QObject |
プロパティ
(since 6.10)contrastPreference : Qt::ContrastPreference(since 6.12)motionPreference : Qt::MotionPreference
パブリック関数
| Qt::ContrastPreference | contrastPreference() const |
| Qt::MotionPreference | motionPreference() const |
シグナル
| void | contrastPreferenceChanged(Qt::ContrastPreference contrastPreference) |
| void | motionPreferenceChanged(Qt::MotionPreference motionPreference) |
再実装された保護関数
| virtual bool | event(QEvent *event) override |
詳細な説明
このクラスは、プラットフォーム固有のアクセシビリティ設定をまとめており、QStyleHints::accessibility からアクセスできます。
QStyleHintsも参照してください 。
プロパティのドキュメント
[read-only, since 6.10] contrastPreference : Qt::ContrastPreference
このプロパティには、システムで設定されたコントラストモードが格納されます。
アプリケーションはこのプロパティを使用して、システムが現在使用しているコントラスト設定を確認できます。
Qt のスタイルでは、パレットの色やアウトラインを調整するためにこのプロパティを使用します。
この列挙型は Qt 6.10 で導入されました。
アクセス関数:
| Qt::ContrastPreference | contrastPreference() const |
Notifier シグナル:
| void | contrastPreferenceChanged(Qt::ContrastPreference contrastPreference) |
関連項目: Qt::ColorScheme 、QGuiApplication::palette()、およびQEvent::PaletteChange 。
[read-only, since 6.12] motionPreference : Qt::MotionPreference
このプロパティには、システムによって設定されたモーションの設定が格納されます。
アプリケーションはこのプロパティを使用して、ユーザーインターフェースのアニメーション効果を軽減すべきかどうかを判断できます。この設定を尊重することで、前庭性運動障害のあるユーザーにとって、アプリケーションのアクセシビリティが向上する可能性があります。
この列挙型は Qt 6.12 で導入されました。
アクセス関数:
| Qt::MotionPreference | motionPreference() const |
Notifier シグナル:
| void | motionPreferenceChanged(Qt::MotionPreference motionPreference) |
関連項目: contrastPreference 。
メンバ関数のドキュメント
[override virtual protected] bool QAccessibilityHints::event(QEvent *event)
QObject::event(QEvent *e) を再実装しています。
© 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.