Qt 6.x
The Qt SDK
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)
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(int startDragDistance READ startDragDistance NOTIFY startDragDistanceChanged FINAL)
40 Q_PROPERTY(int startDragTime READ startDragTime NOTIFY startDragTimeChanged FINAL)
41 Q_PROPERTY(int startDragVelocity READ startDragVelocity STORED false CONSTANT FINAL)
42 Q_PROPERTY(bool useRtlExtensions READ useRtlExtensions STORED false CONSTANT FINAL)
43 Q_PROPERTY(Qt::TabFocusBehavior tabFocusBehavior READ tabFocusBehavior
44 NOTIFY tabFocusBehaviorChanged FINAL)
45 Q_PROPERTY(bool singleClickActivation READ singleClickActivation STORED false CONSTANT FINAL)
46 Q_PROPERTY(bool useHoverEffects READ useHoverEffects WRITE setUseHoverEffects
47 NOTIFY useHoverEffectsChanged FINAL)
48 Q_PROPERTY(int wheelScrollLines READ wheelScrollLines NOTIFY wheelScrollLinesChanged FINAL)
49 Q_PROPERTY(int mouseQuickSelectionThreshold READ mouseQuickSelectionThreshold
50 WRITE setMouseQuickSelectionThreshold NOTIFY mouseQuickSelectionThresholdChanged
51 FINAL)
53 FINAL)
54 Q_PROPERTY(int touchDoubleTapDistance READ touchDoubleTapDistance STORED false CONSTANT FINAL)
55 Q_PROPERTY(Qt::ColorScheme colorScheme READ colorScheme NOTIFY colorSchemeChanged FINAL)
56
57public:
58 void setMouseDoubleClickInterval(int mouseDoubleClickInterval);
59 int mouseDoubleClickInterval() const;
60 int mouseDoubleClickDistance() const;
61 int touchDoubleTapDistance() const;
62 void setMousePressAndHoldInterval(int mousePressAndHoldInterval);
63 int mousePressAndHoldInterval() const;
64 void setStartDragDistance(int startDragDistance);
65 int startDragDistance() const;
66 void setStartDragTime(int startDragTime);
67 int startDragTime() const;
68 int startDragVelocity() const;
69 void setKeyboardInputInterval(int keyboardInputInterval);
70 int keyboardInputInterval() const;
71#if QT_DEPRECATED_SINCE(6, 5)
72 QT_DEPRECATED_VERSION_X_6_5("Use keyboardAutoRepeatRateF() instead")
73 int keyboardAutoRepeatRate() const;
74#endif
75 qreal keyboardAutoRepeatRateF() const;
76 void setCursorFlashTime(int cursorFlashTime);
77 int cursorFlashTime() const;
78 bool showIsFullScreen() const;
79 bool showIsMaximized() const;
80 bool showShortcutsInContextMenus() const;
81 void setShowShortcutsInContextMenus(bool showShortcutsInContextMenus);
82 int passwordMaskDelay() const;
83 QChar passwordMaskCharacter() const;
85 bool useRtlExtensions() const;
86 bool setFocusOnTouchRelease() const;
87 Qt::TabFocusBehavior tabFocusBehavior() const;
88 void setTabFocusBehavior(Qt::TabFocusBehavior tabFocusBehavior);
89 bool singleClickActivation() const;
90 bool useHoverEffects() const;
91 void setUseHoverEffects(bool useHoverEffects);
92 int wheelScrollLines() const;
93 void setWheelScrollLines(int scrollLines);
94 void setMouseQuickSelectionThreshold(int threshold);
95 int mouseQuickSelectionThreshold() const;
96 Qt::ColorScheme colorScheme() const;
97
99 void cursorFlashTimeChanged(int cursorFlashTime);
100 void keyboardInputIntervalChanged(int keyboardInputInterval);
101 void mouseDoubleClickIntervalChanged(int mouseDoubleClickInterval);
102 void mousePressAndHoldIntervalChanged(int mousePressAndHoldInterval);
103 void startDragDistanceChanged(int startDragDistance);
104 void startDragTimeChanged(int startDragTime);
106 void useHoverEffectsChanged(bool useHoverEffects);
108 void wheelScrollLinesChanged(int scrollLines);
111
112private:
113 friend class QGuiApplication;
114 QStyleHints();
115};
116
118
119#endif
\inmodule QtCore
Definition qchar.h:48
\macro qGuiApp
\inmodule QtCore
Definition qobject.h:90
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 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)
Combined button and popup list for selecting options.
ColorScheme
Definition qnamespace.h:49
TabFocusBehavior
Definition qnamespace.h:113
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:92