Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qstylehints.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QSTYLEHINTS_H
5#define QSTYLEHINTS_H
6
7#include <QtGui/qtguiglobal.h>
8#include <QtCore/qobject.h>
9
11
12class QPlatformIntegration;
14class QAccessibilityHints;
15
16class Q_GUI_EXPORT QStyleHints : public QObject
17{
18 Q_OBJECT
19 Q_DECLARE_PRIVATE(QStyleHints)
20 Q_PROPERTY(int cursorFlashTime READ cursorFlashTime NOTIFY cursorFlashTimeChanged FINAL)
21 Q_PROPERTY(qreal fontSmoothingGamma READ fontSmoothingGamma STORED false CONSTANT FINAL)
22#if QT_DEPRECATED_SINCE(6, 5)
23 Q_PROPERTY(int keyboardAutoRepeatRate READ keyboardAutoRepeatRate STORED false CONSTANT FINAL)
24#endif
25 Q_PROPERTY(qreal keyboardAutoRepeatRateF READ keyboardAutoRepeatRateF STORED false CONSTANT FINAL)
26 Q_PROPERTY(int keyboardInputInterval READ keyboardInputInterval
27 NOTIFY keyboardInputIntervalChanged FINAL)
28 Q_PROPERTY(int mouseDoubleClickInterval READ mouseDoubleClickInterval
29 NOTIFY mouseDoubleClickIntervalChanged FINAL)
30 Q_PROPERTY(int mousePressAndHoldInterval READ mousePressAndHoldInterval
31 NOTIFY mousePressAndHoldIntervalChanged FINAL)
32 Q_PROPERTY(QChar passwordMaskCharacter READ passwordMaskCharacter STORED false CONSTANT FINAL)
33 Q_PROPERTY(int passwordMaskDelay READ passwordMaskDelay STORED false CONSTANT FINAL)
34 Q_PROPERTY(bool setFocusOnTouchRelease READ setFocusOnTouchRelease STORED false CONSTANT FINAL)
35 Q_PROPERTY(bool showIsFullScreen READ showIsFullScreen STORED false CONSTANT FINAL)
36 Q_PROPERTY(bool showIsMaximized READ showIsMaximized STORED false CONSTANT FINAL)
37 Q_PROPERTY(bool showShortcutsInContextMenus READ showShortcutsInContextMenus
38 WRITE setShowShortcutsInContextMenus NOTIFY showShortcutsInContextMenusChanged FINAL)
39 Q_PROPERTY(Qt::ContextMenuTrigger contextMenuTrigger READ contextMenuTrigger WRITE
40 setContextMenuTrigger NOTIFY contextMenuTriggerChanged FINAL)
41 Q_PROPERTY(int startDragDistance READ startDragDistance NOTIFY startDragDistanceChanged FINAL)
42 Q_PROPERTY(int startDragTime READ startDragTime NOTIFY startDragTimeChanged FINAL)
43 Q_PROPERTY(int startDragVelocity READ startDragVelocity STORED false CONSTANT FINAL)
44 Q_PROPERTY(bool useRtlExtensions READ useRtlExtensions STORED false CONSTANT FINAL)
45 Q_PROPERTY(Qt::TabFocusBehavior tabFocusBehavior READ tabFocusBehavior
46 NOTIFY tabFocusBehaviorChanged FINAL)
47 Q_PROPERTY(bool singleClickActivation READ singleClickActivation STORED false CONSTANT FINAL)
48 Q_PROPERTY(bool useHoverEffects READ useHoverEffects WRITE setUseHoverEffects
49 NOTIFY useHoverEffectsChanged FINAL)
50 Q_PROPERTY(int wheelScrollLines READ wheelScrollLines NOTIFY wheelScrollLinesChanged FINAL)
51 Q_PROPERTY(int mouseQuickSelectionThreshold READ mouseQuickSelectionThreshold
52 WRITE setMouseQuickSelectionThreshold NOTIFY mouseQuickSelectionThresholdChanged
53 FINAL)
54 Q_PROPERTY(int mouseDoubleClickDistance READ mouseDoubleClickDistance STORED false CONSTANT
55 FINAL)
56 Q_PROPERTY(int touchDoubleTapDistance READ touchDoubleTapDistance STORED false CONSTANT FINAL)
57 Q_PROPERTY(Qt::ColorScheme colorScheme READ colorScheme WRITE setColorScheme
58 RESET unsetColorScheme NOTIFY colorSchemeChanged FINAL)
59 Q_PROPERTY(bool menuSelectionWraps READ menuSelectionWraps STORED false CONSTANT FINAL REVISION(6, 10))
60 Q_PROPERTY(const QAccessibilityHints* accessibility READ accessibility CONSTANT FINAL REVISION(6, 10))
61 Q_PROPERTY(int toolTipWakeUpDelay READ toolTipWakeUpDelay WRITE setToolTipWakeUpDelay
62 NOTIFY toolTipWakeUpDelayChanged FINAL REVISION(6, 12))
63
64public:
65 void setMouseDoubleClickInterval(int mouseDoubleClickInterval);
66 int mouseDoubleClickInterval() const;
67 int mouseDoubleClickDistance() const;
68 int touchDoubleTapDistance() const;
69 void setMousePressAndHoldInterval(int mousePressAndHoldInterval);
70 int mousePressAndHoldInterval() const;
71 void setStartDragDistance(int startDragDistance);
72 int startDragDistance() const;
73 void setStartDragTime(int startDragTime);
74 int startDragTime() const;
75 int startDragVelocity() const;
76 void setKeyboardInputInterval(int keyboardInputInterval);
77 int keyboardInputInterval() const;
78#if QT_DEPRECATED_SINCE(6, 5)
79 QT_DEPRECATED_VERSION_X_6_5("Use keyboardAutoRepeatRateF() instead")
80 int keyboardAutoRepeatRate() const;
81#endif
82 qreal keyboardAutoRepeatRateF() const;
83 void setCursorFlashTime(int cursorFlashTime);
84 int cursorFlashTime() const;
85 bool showIsFullScreen() const;
86 bool showIsMaximized() const;
87 bool showShortcutsInContextMenus() const;
88 void setShowShortcutsInContextMenus(bool showShortcutsInContextMenus);
89 Qt::ContextMenuTrigger contextMenuTrigger() const;
90 void setContextMenuTrigger(Qt::ContextMenuTrigger contextMenuTrigger);
91 bool menuSelectionWraps() const;
92 int passwordMaskDelay() const;
93 QChar passwordMaskCharacter() const;
94 qreal fontSmoothingGamma() const;
95 bool useRtlExtensions() const;
96 bool setFocusOnTouchRelease() const;
97 Qt::TabFocusBehavior tabFocusBehavior() const;
98 void setTabFocusBehavior(Qt::TabFocusBehavior tabFocusBehavior);
99 bool singleClickActivation() const;
100 bool useHoverEffects() const;
101 void setUseHoverEffects(bool useHoverEffects);
102 int wheelScrollLines() const;
103 void setWheelScrollLines(int scrollLines);
104 void setMouseQuickSelectionThreshold(int threshold);
105 int mouseQuickSelectionThreshold() const;
106 Qt::ColorScheme colorScheme() const;
107 void setColorScheme(Qt::ColorScheme scheme);
108 void unsetColorScheme() { setColorScheme(Qt::ColorScheme::Unknown); }
109 const QAccessibilityHints* accessibility() const;
110 int toolTipWakeUpDelay() const;
111 void setToolTipWakeUpDelay(int toolTipWakeUpDelay);
113Q_SIGNALS:
114 void cursorFlashTimeChanged(int cursorFlashTime);
115 void keyboardInputIntervalChanged(int keyboardInputInterval);
116 void mouseDoubleClickIntervalChanged(int mouseDoubleClickInterval);
117 void mousePressAndHoldIntervalChanged(int mousePressAndHoldInterval);
118 void startDragDistanceChanged(int startDragDistance);
119 void startDragTimeChanged(int startDragTime);
120 void tabFocusBehaviorChanged(Qt::TabFocusBehavior tabFocusBehavior);
121 void useHoverEffectsChanged(bool useHoverEffects);
122 void showShortcutsInContextMenusChanged(bool);
123 void contextMenuTriggerChanged(Qt::ContextMenuTrigger contextMenuTrigger);
124 void wheelScrollLinesChanged(int scrollLines);
125 void mouseQuickSelectionThresholdChanged(int threshold);
126 void colorSchemeChanged(Qt::ColorScheme colorScheme);
127 Q_REVISION(6, 12) void toolTipWakeUpDelayChanged(int toolTipWakeUpDelay);
128
129private:
130 friend class QGuiApplication;
131 QStyleHints();
132};
133
134QT_END_NAMESPACE
135
136#endif
The QActionGroup class groups actions together.
The QAction class provides an abstraction for user commands that can be added to different user inter...
Definition qaction.h:30
The QStyleHints class contains platform specific hints and settings. \inmodule QtGui.
Definition qstylehints.h:17
QT_REQUIRE_CONFIG(action)
Combined button and popup list for selecting options.
#define QAPP_CHECK(functionName)
Definition qaction.cpp:18
static QString qt_strippedText(QString s)
Definition qaction.cpp:31
QT_REQUIRE_CONFIG(animation)
Q_CORE_EXPORT QDebug operator<<(QDebug debug, QDir::Filters filters)
Definition qdir.cpp:2582