The QAccessibilityHints class contains platform specific accessibility hints and settings. 更多...
| 頭: |
#include <QAccessibilityHints>
|
| CMake: |
find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
|
| qmake: |
QT += gui
|
| Since: | Qt 6.10 |
| 繼承: | QObject |
(從 6.10 起)
contrastPreference
: const Qt::ContrastPreference
| Qt::ContrastPreference | contrastPreference () const |
| void | contrastPreferenceChanged (Qt::ContrastPreference contrastPreference ) |
| virtual bool | event (QEvent * event ) override |
This class bundles together platform specific accessibility settings, and can be accessed from QStyleHints::accessibility .
另請參閱 QStyleHints .
[read-only, since 6.10]
contrastPreference
: const
Qt::ContrastPreference
This property holds the contrast mode set by the system.
This property can be used by the application to determine what contrast settings the system is currently using.
Qt styles use this property in order to adjust palette colors and outlines.
此特性在 Qt 6.10 引入。
訪問函數:
| Qt::ContrastPreference | contrastPreference () const |
通知程序信號:
| void | contrastPreferenceChanged (Qt::ContrastPreference contrastPreference ) |
另請參閱 Qt::ColorScheme , QGuiApplication::palette (),和 QEvent::PaletteChange .
[override virtual protected]
bool
QAccessibilityHints::
event
(
QEvent
*
event
)
重實現: QObject::event (QEvent *e).