Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
12
15
16class Q_GUI_EXPORT QStyleHints : public QObject
17{
19 Q_DECLARE_PRIVATE(QStyleHints)
20 Q_PROPERTY(int cursorFlashTime READ cursorFlashTime NOTIFY cursorFlashTimeChanged 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)
55 FINAL)
57 Q_PROPERTY(Qt::ColorScheme colorScheme READ colorScheme WRITE setColorScheme
58 RESET unsetColorScheme NOTIFY colorSchemeChanged FINAL)
59
60public:
61 void setMouseDoubleClickInterval(int mouseDoubleClickInterval);
62 int mouseDoubleClickInterval() const;
63 int mouseDoubleClickDistance() const;
64 int touchDoubleTapDistance() const;
65 void setMousePressAndHoldInterval(int mousePressAndHoldInterval);
66 int mousePressAndHoldInterval() const;
67 void setStartDragDistance(int startDragDistance);
68 int startDragDistance() const;
69 void setStartDragTime(int startDragTime);
70 int startDragTime() const;
71 int startDragVelocity() const;
72 void setKeyboardInputInterval(int keyboardInputInterval);
73 int keyboardInputInterval() const;
74#if QT_DEPRECATED_SINCE(6, 5)
75 QT_DEPRECATED_VERSION_X_6_5("Use keyboardAutoRepeatRateF() instead")
76 int keyboardAutoRepeatRate() const;
77#endif
78 qreal keyboardAutoRepeatRateF() const;
79 void setCursorFlashTime(int cursorFlashTime);
80 int cursorFlashTime() const;
81 bool showIsFullScreen() const;
82 bool showIsMaximized() const;
83 bool showShortcutsInContextMenus() const;
84 void setShowShortcutsInContextMenus(bool showShortcutsInContextMenus);
85 Qt::ContextMenuTrigger contextMenuTrigger() const;
86 void setContextMenuTrigger(Qt::ContextMenuTrigger contextMenuTrigger);
87 int passwordMaskDelay() const;
88 QChar passwordMaskCharacter() const;
90 bool useRtlExtensions() const;
91 bool setFocusOnTouchRelease() const;
92 Qt::TabFocusBehavior tabFocusBehavior() const;
93 void setTabFocusBehavior(Qt::TabFocusBehavior tabFocusBehavior);
94 bool singleClickActivation() const;
95 bool useHoverEffects() const;
96 void setUseHoverEffects(bool useHoverEffects);
97 int wheelScrollLines() const;
98 void setWheelScrollLines(int scrollLines);
99 void setMouseQuickSelectionThreshold(int threshold);
100 int mouseQuickSelectionThreshold() const;
101 Qt::ColorScheme colorScheme() const;
102 void setColorScheme(Qt::ColorScheme scheme);
103 void unsetColorScheme() { setColorScheme(Qt::ColorScheme::Unknown); }
104
106 void cursorFlashTimeChanged(int cursorFlashTime);
107 void keyboardInputIntervalChanged(int keyboardInputInterval);
108 void mouseDoubleClickIntervalChanged(int mouseDoubleClickInterval);
109 void mousePressAndHoldIntervalChanged(int mousePressAndHoldInterval);
110 void startDragDistanceChanged(int startDragDistance);
111 void startDragTimeChanged(int startDragTime);
113 void useHoverEffectsChanged(bool useHoverEffects);
116 void wheelScrollLinesChanged(int scrollLines);
119
120private:
121 friend class QGuiApplication;
122 QStyleHints();
123};
124
126
127#endif
\inmodule QtCore
\macro qGuiApp
\inmodule QtCore
Definition qobject.h:103
The QPlatformIntegration class is the entry for WindowSystem specific functionality.
The QStyleHints class contains platform specific hints and settings. \inmodule QtGui.
Definition qstylehints.h:17
void mouseQuickSelectionThresholdChanged(int threshold)
void wheelScrollLinesChanged(int scrollLines)
void useHoverEffectsChanged(bool useHoverEffects)
void cursorFlashTimeChanged(int cursorFlashTime)
void unsetColorScheme()
void colorSchemeChanged(Qt::ColorScheme colorScheme)
void keyboardInputIntervalChanged(int keyboardInputInterval)
void startDragTimeChanged(int startDragTime)
void showShortcutsInContextMenusChanged(bool)
void mousePressAndHoldIntervalChanged(int mousePressAndHoldInterval)
void startDragDistanceChanged(int startDragDistance)
void mouseDoubleClickIntervalChanged(int mouseDoubleClickInterval)
void tabFocusBehaviorChanged(Qt::TabFocusBehavior tabFocusBehavior)
void contextMenuTriggerChanged(Qt::ContextMenuTrigger contextMenuTrigger)
Combined button and popup list for selecting options.
Definition qcompare.h:63
ColorScheme
Definition qnamespace.h:50
TabFocusBehavior
Definition qnamespace.h:114
ContextMenuTrigger
static Q_CONSTINIT int mouseDoubleClickDistance
static Q_CONSTINIT int touchDoubleTapDistance
static Q_CONSTINIT qreal fontSmoothingGamma
#define QT_DEPRECATED_VERSION_X_6_5(text)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SIGNALS
double qreal
Definition qtypes.h:187