![]() |
Qt 6.x
The Qt SDK
|
The QStyleHints class contains platform specific hints and settings. \inmodule QtGui. More...
#include <qstylehints.h>
Public Member Functions | |
void | setMouseDoubleClickInterval (int mouseDoubleClickInterval) |
Sets the mouseDoubleClickInterval. | |
int | mouseDoubleClickInterval () const |
int | mouseDoubleClickDistance () const |
int | touchDoubleTapDistance () const |
void | setMousePressAndHoldInterval (int mousePressAndHoldInterval) |
Sets the mousePressAndHoldInterval. | |
int | mousePressAndHoldInterval () const |
void | setStartDragDistance (int startDragDistance) |
Sets the startDragDistance. | |
int | startDragDistance () const |
void | setStartDragTime (int startDragTime) |
Sets the startDragDragTime. | |
int | startDragTime () const |
int | startDragVelocity () const |
void | setKeyboardInputInterval (int keyboardInputInterval) |
Sets the keyboardInputInterval. | |
int | keyboardInputInterval () const |
qreal | keyboardAutoRepeatRateF () const |
void | setCursorFlashTime (int cursorFlashTime) |
Sets the cursorFlashTime. | |
int | cursorFlashTime () const |
bool | showIsFullScreen () const |
bool | showIsMaximized () const |
bool | showShortcutsInContextMenus () const |
void | setShowShortcutsInContextMenus (bool showShortcutsInContextMenus) |
int | passwordMaskDelay () const |
QChar | passwordMaskCharacter () const |
qreal | fontSmoothingGamma () const |
bool | useRtlExtensions () const |
bool | setFocusOnTouchRelease () const |
Qt::TabFocusBehavior | tabFocusBehavior () const |
void | setTabFocusBehavior (Qt::TabFocusBehavior tabFocusBehavior) |
Sets the tabFocusBehavior. | |
bool | singleClickActivation () const |
bool | useHoverEffects () const |
void | setUseHoverEffects (bool useHoverEffects) |
int | wheelScrollLines () const |
void | setWheelScrollLines (int scrollLines) |
Sets the wheelScrollLines. | |
void | setMouseQuickSelectionThreshold (int threshold) |
Sets the mouse quick selection threshold. | |
int | mouseQuickSelectionThreshold () const |
Qt::ColorScheme | colorScheme () const |
![]() | |
Q_INVOKABLE | QObject (QObject *parent=nullptr) |
Constructs an object with parent object parent. | |
virtual | ~QObject () |
Destroys the object, deleting all its child objects. | |
virtual bool | event (QEvent *event) |
This virtual function receives events to an object and should return true if the event e was recognized and processed. | |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
Filters events if this object has been installed as an event filter for the watched object. | |
QString | objectName () const |
Q_WEAK_OVERLOAD void | setObjectName (const QString &name) |
Sets the object's name to name. | |
void | setObjectName (QAnyStringView name) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
QBindable< QString > | bindableObjectName () |
bool | isWidgetType () const |
Returns true if the object is a widget; otherwise returns false . | |
bool | isWindowType () const |
Returns true if the object is a window; otherwise returns false . | |
bool | isQuickItemType () const |
Returns true if the object is a QQuickItem; otherwise returns false . | |
bool | signalsBlocked () const noexcept |
Returns true if signals are blocked; otherwise returns false . | |
bool | blockSignals (bool b) noexcept |
If block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke anything connected to it). | |
QThread * | thread () const |
Returns the thread in which the object lives. | |
void | moveToThread (QThread *thread) |
Changes the thread affinity for this object and its children. | |
int | startTimer (int interval, Qt::TimerType timerType=Qt::CoarseTimer) |
This is an overloaded function that will start a timer of type timerType and a timeout of interval milliseconds. | |
int | startTimer (std::chrono::milliseconds time, Qt::TimerType timerType=Qt::CoarseTimer) |
void | killTimer (int id) |
Kills the timer with timer identifier, id. | |
template<typename T > | |
T | findChild (const QString &aName=QString(), Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
Returns the child of this object that can be cast into type T and that is called name, or \nullptr if there is no such object. | |
template<typename T > | |
QList< T > | findChildren (const QString &aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
Returns all children of this object with the given name that can be cast to type T, or an empty list if there are no such objects. | |
template<typename T > | |
QList< T > | findChildren (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
const QObjectList & | children () const |
Returns a list of child objects. | |
void | setParent (QObject *parent) |
Makes the object a child of parent. | |
void | installEventFilter (QObject *filterObj) |
Installs an event filter filterObj on this object. | |
void | removeEventFilter (QObject *obj) |
Removes an event filter object obj from this object. | |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const |
bool | disconnect (const char *signal=nullptr, const QObject *receiver=nullptr, const char *member=nullptr) const |
bool | disconnect (const QObject *receiver, const char *member=nullptr) const |
void | dumpObjectTree () const |
Dumps a tree of children to the debug output. | |
void | dumpObjectInfo () const |
Dumps information about signal connections, etc. | |
bool | setProperty (const char *name, const QVariant &value) |
Sets the value of the object's name property to value. | |
bool | setProperty (const char *name, QVariant &&value) |
QVariant | property (const char *name) const |
Returns the value of the object's name property. | |
QList< QByteArray > | dynamicPropertyNames () const |
QBindingStorage * | bindingStorage () |
const QBindingStorage * | bindingStorage () const |
QObject * | parent () const |
Returns a pointer to the parent object. | |
bool | inherits (const char *classname) const |
Returns true if this object is an instance of a class that inherits className or a QObject subclass that inherits className; otherwise returns false . | |
Properties | |
int | cursorFlashTime |
the text cursor's flash (blink) time in milliseconds. | |
qreal | fontSmoothingGamma |
the gamma value used in font smoothing. | |
qreal | keyboardAutoRepeatRateF |
the rate, in events per second, in which additional repeated key presses will automatically be generated if a key is being held down. | |
int | keyboardInputInterval |
the time limit, in milliseconds, that distinguishes a key press from two consecutive key presses. | |
int | mouseDoubleClickInterval |
the time limit in milliseconds that distinguishes a double click from two consecutive mouse clicks. | |
int | mousePressAndHoldInterval |
the time limit in milliseconds that activates a press and hold. | |
QChar | passwordMaskCharacter |
the character used to mask the characters typed into text input fields in password mode. | |
int | passwordMaskDelay |
the time, in milliseconds, a typed letter is displayed unshrouded in a text input field in password mode. | |
bool | setFocusOnTouchRelease |
the event that should set input focus on focus objects. | |
bool | showIsFullScreen |
whether the platform defaults to fullscreen windows. | |
bool | showIsMaximized |
whether the platform defaults to maximized windows. | |
bool | showShortcutsInContextMenus |
true if the platform normally shows shortcut key sequences in context menus, otherwise false . | |
int | startDragDistance |
the distance, in pixels, that the mouse must be moved with a button held down before a drag and drop operation will begin. | |
int | startDragTime |
the time, in milliseconds, that a mouse button must be held down before a drag and drop operation will begin. | |
int | startDragVelocity |
the limit for the velocity, in pixels per second, that the mouse may be moved, with a button held down, for a drag and drop operation to begin. | |
bool | useRtlExtensions |
the writing direction. | |
Qt::TabFocusBehavior | tabFocusBehavior |
The focus behavior on press of the tab key. | |
bool | singleClickActivation |
whether items are activated by single or double click. | |
bool | useHoverEffects |
whether UI elements use hover effects. | |
int | wheelScrollLines |
Number of lines to scroll by default for each wheel click. | |
int | mouseQuickSelectionThreshold |
Quick selection mouse threshold in QLineEdit. | |
int | mouseDoubleClickDistance |
the maximum distance, in pixels, that the mouse can be moved between two consecutive mouse clicks and still have it detected as a double-click | |
int | touchDoubleTapDistance |
the maximum distance, in pixels, that a finger can be moved between two consecutive taps and still have it detected as a double-tap | |
Qt::ColorScheme | colorScheme |
the color scheme of the platform theme. | |
![]() | |
QString | objectName |
the name of this object | |
Friends | |
class | QGuiApplication |
Additional Inherited Members | |
![]() | |
void | deleteLater () |
\threadsafe | |
![]() | |
static QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection) |
\threadsafe | |
static QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1 , typename Func2 > | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::ContextTypeForFunctor< Func2 >::ContextType *context, Func2 &&slot, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1 , typename Func2 > | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, Func2 &&slot) |
static bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member) |
\threadsafe | |
static bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member) |
static bool | disconnect (const QMetaObject::Connection &) |
Disconnect a connection. | |
template<typename Func1 , typename Func2 > | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiver, Func2 slot) |
template<typename Func1 > | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *receiver, void **zero) |
![]() | |
QObject * | sender () const |
Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise it returns \nullptr. | |
int | senderSignalIndex () const |
int | receivers (const char *signal) const |
Returns the number of receivers connected to the signal. | |
bool | isSignalConnected (const QMetaMethod &signal) const |
virtual void | timerEvent (QTimerEvent *event) |
This event handler can be reimplemented in a subclass to receive timer events for the object. | |
virtual void | childEvent (QChildEvent *event) |
This event handler can be reimplemented in a subclass to receive child events. | |
virtual void | customEvent (QEvent *event) |
This event handler can be reimplemented in a subclass to receive custom events. | |
virtual void | connectNotify (const QMetaMethod &signal) |
virtual void | disconnectNotify (const QMetaMethod &signal) |
QObject (QObjectPrivate &dd, QObject *parent=nullptr) | |
![]() | |
QScopedPointer< QObjectData > | d_ptr |
![]() | |
template< class T > T | qobject_cast (const QObject *object) |
Returns the given object cast to type T if the object is of type T (or of a subclass); otherwise returns \nullptr. | |
template< typename T > T | qFindChildqFindChildren (const QObject *obj, const QString &name)() |
template< typename T > QList< T > | qFindChildrenqFindChildren (const QObject *obj, const QString &name)() |
QObjectList | |
\macro Q_CLASSINFO(Name, Value) | |
The QStyleHints class contains platform specific hints and settings. \inmodule QtGui.
An object of this class, obtained from QGuiApplication, provides access to certain global user interface parameters of the current platform.
Access to most settings is read only. The platform itself usually provides the user with ways to tune these parameters. Authors of custom user interface components should read relevant settings to allow the components to exhibit the same behavior and feel as other components.
Definition at line 16 of file qstylehints.h.
Qt::ColorScheme QStyleHints::colorScheme | ( | ) | const |
Definition at line 130 of file qstylehints.cpp.
References d.
|
signal |
Referenced by QQuickStylePlugin::registerTypes(), and QQuickStylePlugin::unregisterTypes().
int QStyleHints::cursorFlashTime | ( | ) | const |
Definition at line 329 of file qstylehints.cpp.
References QPlatformIntegration::CursorFlashTime, QPlatformTheme::CursorFlashTime, d, themeableHint(), and QVariant::toInt().
|
signal |
Referenced by QWidgetLineControl::setBlinkingCursorEnabled(), QQuickTextControlPrivate::setBlinkingCursorEnabled(), QQuickTextInputPrivate::setBlinkingCursorEnabled(), setCursorFlashTime(), and QWidgetTextControlPrivate::setCursorVisible().
qreal QStyleHints::fontSmoothingGamma | ( | ) | const |
Definition at line 424 of file qstylehints.cpp.
References QPlatformIntegration::FontSmoothingGamma, hint(), and QVariant::toReal().
qreal QStyleHints::keyboardAutoRepeatRateF | ( | ) | const |
Definition at line 301 of file qstylehints.cpp.
References QPlatformIntegration::KeyboardAutoRepeatRate, QPlatformTheme::KeyboardAutoRepeatRate, themeableHint(), and QVariant::toReal().
int QStyleHints::keyboardInputInterval | ( | ) | const |
Definition at line 274 of file qstylehints.cpp.
References d, QPlatformIntegration::KeyboardInputInterval, QPlatformTheme::KeyboardInputInterval, themeableHint(), and QVariant::toInt().
|
signal |
int QStyleHints::mouseDoubleClickDistance | ( | ) | const |
Definition at line 102 of file qstylehints.cpp.
References d, QPlatformIntegration::MouseDoubleClickDistance, QPlatformTheme::MouseDoubleClickDistance, themeableHint(), and QVariant::toInt().
int QStyleHints::mouseDoubleClickInterval | ( | ) | const |
Definition at line 88 of file qstylehints.cpp.
References d, QPlatformIntegration::MouseDoubleClickInterval, QPlatformTheme::MouseDoubleClickInterval, themeableHint(), and QVariant::toInt().
|
signal |
int QStyleHints::mousePressAndHoldInterval | ( | ) | const |
Definition at line 158 of file qstylehints.cpp.
References d, QPlatformIntegration::MousePressAndHoldInterval, QPlatformTheme::MousePressAndHoldInterval, themeableHint(), and QVariant::toInt().
|
signal |
int QStyleHints::mouseQuickSelectionThreshold | ( | ) | const |
Definition at line 588 of file qstylehints.cpp.
References d, QPlatformIntegration::MouseQuickSelectionThreshold, QPlatformTheme::MouseQuickSelectionThreshold, themeableHint(), and QVariant::toInt().
|
signal |
QChar QStyleHints::passwordMaskCharacter | ( | ) | const |
Definition at line 415 of file qstylehints.cpp.
References QPlatformIntegration::PasswordMaskCharacter, QPlatformTheme::PasswordMaskCharacter, themeableHint(), and QVariant::toChar().
int QStyleHints::passwordMaskDelay | ( | ) | const |
Definition at line 405 of file qstylehints.cpp.
References QPlatformIntegration::PasswordMaskDelay, QPlatformTheme::PasswordMaskDelay, themeableHint(), and QVariant::toInt().
void QStyleHints::setCursorFlashTime | ( | int | cursorFlashTime | ) |
Sets the cursorFlashTime.
Definition at line 312 of file qstylehints.cpp.
References cursorFlashTime, cursorFlashTimeChanged(), d, and emit.
Referenced by QApplication::setCursorFlashTime().
bool QStyleHints::setFocusOnTouchRelease | ( | ) | const |
Definition at line 450 of file qstylehints.cpp.
References QPlatformIntegration::SetFocusOnTouchRelease, QPlatformTheme::SetFocusOnTouchRelease, themeableHint(), and QVariant::toBool().
void QStyleHints::setKeyboardInputInterval | ( | int | keyboardInputInterval | ) |
Sets the keyboardInputInterval.
Definition at line 260 of file qstylehints.cpp.
References d, emit, keyboardInputInterval, and keyboardInputIntervalChanged().
Referenced by QApplication::setKeyboardInputInterval().
void QStyleHints::setMouseDoubleClickInterval | ( | int | mouseDoubleClickInterval | ) |
Sets the mouseDoubleClickInterval.
Definition at line 74 of file qstylehints.cpp.
References d, emit, mouseDoubleClickInterval, and mouseDoubleClickIntervalChanged().
Referenced by QApplication::setDoubleClickInterval().
void QStyleHints::setMousePressAndHoldInterval | ( | int | mousePressAndHoldInterval | ) |
Sets the mousePressAndHoldInterval.
Definition at line 142 of file qstylehints.cpp.
References d, emit, mousePressAndHoldInterval, and mousePressAndHoldIntervalChanged().
void QStyleHints::setMouseQuickSelectionThreshold | ( | int | threshold | ) |
Sets the mouse quick selection threshold.
Definition at line 568 of file qstylehints.cpp.
References d, emit, and mouseQuickSelectionThresholdChanged().
void QStyleHints::setShowShortcutsInContextMenus | ( | bool | showShortcutsInContextMenus | ) |
Definition at line 391 of file qstylehints.cpp.
References d, emit, showShortcutsInContextMenus, and showShortcutsInContextMenusChanged().
void QStyleHints::setStartDragDistance | ( | int | startDragDistance | ) |
Sets the startDragDistance.
Definition at line 172 of file qstylehints.cpp.
References d, emit, startDragDistance, and startDragDistanceChanged().
Referenced by QApplication::setStartDragDistance().
void QStyleHints::setStartDragTime | ( | int | startDragTime | ) |
Sets the startDragDragTime.
Definition at line 213 of file qstylehints.cpp.
References d, emit, startDragTime, and startDragTimeChanged().
Referenced by QApplication::setStartDragTime().
void QStyleHints::setTabFocusBehavior | ( | Qt::TabFocusBehavior | tabFocusBehavior | ) |
Sets the tabFocusBehavior.
Definition at line 478 of file qstylehints.cpp.
References d, emit, tabFocusBehavior, and tabFocusBehaviorChanged().
void QStyleHints::setUseHoverEffects | ( | bool | useHoverEffects | ) |
Definition at line 519 of file qstylehints.cpp.
References d, emit, QPlatformTheme::HoverEffect, useHoverEffects, and useHoverEffectsChanged().
void QStyleHints::setWheelScrollLines | ( | int | scrollLines | ) |
Sets the wheelScrollLines.
Definition at line 553 of file qstylehints.cpp.
References d, emit, and wheelScrollLinesChanged().
bool QStyleHints::showIsFullScreen | ( | ) | const |
Definition at line 349 of file qstylehints.cpp.
References hint(), QPlatformIntegration::ShowIsFullScreen, and QVariant::toBool().
bool QStyleHints::showIsMaximized | ( | ) | const |
Definition at line 367 of file qstylehints.cpp.
References hint(), QPlatformIntegration::ShowIsMaximized, and QVariant::toBool().
bool QStyleHints::showShortcutsInContextMenus | ( | ) | const |
Definition at line 383 of file qstylehints.cpp.
References d, QPlatformIntegration::ShowShortcutsInContextMenus, QPlatformTheme::ShowShortcutsInContextMenus, themeableHint(), and QVariant::toBool().
|
signal |
bool QStyleHints::singleClickActivation | ( | ) | const |
Definition at line 496 of file qstylehints.cpp.
References QPlatformIntegration::ItemViewActivateItemOnSingleClick, QPlatformTheme::ItemViewActivateItemOnSingleClick, themeableHint(), and QVariant::toBool().
int QStyleHints::startDragDistance | ( | ) | const |
Definition at line 199 of file qstylehints.cpp.
References d, QPlatformIntegration::StartDragDistance, QPlatformTheme::StartDragDistance, themeableHint(), and QVariant::toInt().
|
signal |
int QStyleHints::startDragTime | ( | ) | const |
Definition at line 233 of file qstylehints.cpp.
References d, QPlatformIntegration::StartDragTime, QPlatformTheme::StartDragTime, themeableHint(), and QVariant::toInt().
|
signal |
int QStyleHints::startDragVelocity | ( | ) | const |
Definition at line 249 of file qstylehints.cpp.
References QPlatformIntegration::StartDragVelocity, QPlatformTheme::StartDragVelocity, themeableHint(), and QVariant::toInt().
Qt::TabFocusBehavior QStyleHints::tabFocusBehavior | ( | ) | const |
Definition at line 464 of file qstylehints.cpp.
References d, QPlatformIntegration::TabFocusBehavior, QPlatformTheme::TabFocusBehavior, themeableHint(), and QVariant::toInt().
|
signal |
int QStyleHints::touchDoubleTapDistance | ( | ) | const |
Definition at line 116 of file qstylehints.cpp.
References d, themeableHint(), QVariant::toInt(), and QPlatformTheme::TouchDoubleTapDistance.
bool QStyleHints::useHoverEffects | ( | ) | const |
Definition at line 511 of file qstylehints.cpp.
References d, QPlatformTheme::HoverEffect, themeableHint(), QVariant::toInt(), QPlatformIntegration::UiEffects, and QPlatformTheme::UiEffects.
|
signal |
bool QStyleHints::useRtlExtensions | ( | ) | const |
Definition at line 436 of file qstylehints.cpp.
References hint(), QVariant::toBool(), and QPlatformIntegration::UseRtlExtensions.
int QStyleHints::wheelScrollLines | ( | ) | const |
Definition at line 539 of file qstylehints.cpp.
References d, themeableHint(), QVariant::toInt(), QPlatformIntegration::WheelScrollLines, and QPlatformTheme::WheelScrollLines.
|
signal |
|
friend |
Definition at line 113 of file qstylehints.h.
|
read |
the color scheme of the platform theme.
Definition at line 117 of file qstylehints.h.
|
read |
the text cursor's flash (blink) time in milliseconds.
The flash time is the time used to display, invert and restore the caret display. Usually the text cursor is displayed for half the cursor flash time, then hidden for the same amount of time.
Definition at line 117 of file qstylehints.h.
Referenced by QWidgetLineControl::resetCursorBlinkTimer(), setCursorFlashTime(), QWidgetLineControl::updateCursorBlinking(), QWidgetTextControlPrivate::updateCursorBlinking(), QQuickTextInputPrivate::updateCursorBlinking(), and QQuickTextControlPrivate::updateCursorFlashTime().
|
read |
the gamma value used in font smoothing.
Definition at line 117 of file qstylehints.h.
|
read |
the rate, in events per second, in which additional repeated key presses will automatically be generated if a key is being held down.
Definition at line 117 of file qstylehints.h.
Referenced by QAbstractSpinBox::timerEvent().
|
read |
the time limit, in milliseconds, that distinguishes a key press from two consecutive key presses.
Definition at line 117 of file qstylehints.h.
Referenced by setKeyboardInputInterval().
|
read |
the maximum distance, in pixels, that the mouse can be moved between two consecutive mouse clicks and still have it detected as a double-click
Definition at line 117 of file qstylehints.h.
|
read |
the time limit in milliseconds that distinguishes a double click from two consecutive mouse clicks.
Definition at line 117 of file qstylehints.h.
Referenced by QQuickTextControlPrivate::mousePressEvent(), QGuiApplicationPrivate::processMouseEvent(), setMouseDoubleClickInterval(), and QmlJSDebugger::InspectTool::touchEvent().
|
read |
the time limit in milliseconds that activates a press and hold.
Definition at line 117 of file qstylehints.h.
Referenced by QQuickMouseArea::pressAndHoldInterval(), and setMousePressAndHoldInterval().
|
readwrite |
Quick selection mouse threshold in QLineEdit.
This property defines how much the mouse cursor should be moved along the y axis to trigger a quick selection during a normal QLineEdit text selection.
If the property value is less than or equal to 0, the quick selection feature is disabled.
Definition at line 117 of file qstylehints.h.
Referenced by QLineEditPrivate::initMouseYThreshold().
|
read |
the character used to mask the characters typed into text input fields in password mode.
Definition at line 117 of file qstylehints.h.
|
read |
the time, in milliseconds, a typed letter is displayed unshrouded in a text input field in password mode.
Definition at line 117 of file qstylehints.h.
|
read |
the event that should set input focus on focus objects.
This property is true
if focus objects (line edits etc) should receive input focus after a touch/mouse release. This is normal behavior on touch platforms. On desktop platforms, the standard is to set focus already on touch/mouse press.
Definition at line 117 of file qstylehints.h.
|
read |
whether the platform defaults to fullscreen windows.
This property is true
if the platform defaults to windows being fullscreen, otherwise false
.
Definition at line 117 of file qstylehints.h.
|
read |
whether the platform defaults to maximized windows.
This property is true
if the platform defaults to windows being maximized, otherwise false
.
Definition at line 117 of file qstylehints.h.
|
readwrite |
true
if the platform normally shows shortcut key sequences in context menus, otherwise false
.
Since Qt 5.13, the setShowShortcutsInContextMenus() function can be used to override the platform default.
Definition at line 117 of file qstylehints.h.
Referenced by setShowShortcutsInContextMenus().
|
read |
whether items are activated by single or double click.
This property is true
if items should be activated by single click, false
if they should be activated by double click instead.
Definition at line 117 of file qstylehints.h.
|
read |
the distance, in pixels, that the mouse must be moved with a button held down before a drag and drop operation will begin.
If you support drag and drop in your application, and want to start a drag and drop operation after the user has moved the cursor a certain distance with a button held down, you should use this property's value as the minimum distance required.
For example, if the mouse position of the click is stored in startPos
and the current position (e.g. in the mouse move event) is currentPos
, you can find out if a drag should be started with code like this:
Definition at line 117 of file qstylehints.h.
Referenced by QQuickDrawer::QQuickDrawer(), QQuickDeliveryAgentPrivate::dragOverThreshold(), QQuickDeliveryAgentPrivate::dragOverThreshold(), QuickTestUtil::dragThreshold(), QQuickPathViewPrivate::handleMouseMoveEvent(), QQuickSwipeDelegatePrivate::handleMouseMoveEvent(), QQuickPressHandler::mouseMoveEvent(), QQuickTextInput::mouseMoveEvent(), QQuickTextInput::mousePressEvent(), QQuickTextControlPrivate::mousePressEvent(), setStartDragDistance(), and QQuickMultiPointTouchArea::updateTouchData().
|
read |
the time, in milliseconds, that a mouse button must be held down before a drag and drop operation will begin.
If you support drag and drop in your application, and want to start a drag and drop operation after the user has held down a mouse button for a certain amount of time, you should use this property's value as the delay.
Definition at line 117 of file qstylehints.h.
Referenced by setStartDragTime().
|
read |
the limit for the velocity, in pixels per second, that the mouse may be moved, with a button held down, for a drag and drop operation to begin.
A value of 0 means there is no such limit.
Definition at line 117 of file qstylehints.h.
Referenced by QQuickDeliveryAgentPrivate::dragOverThreshold(), QQuickPointerHandlerPrivate::dragOverThreshold(), and QQuickDeliveryAgentPrivate::dragOverThreshold().
|
read |
The focus behavior on press of the tab key.
Definition at line 117 of file qstylehints.h.
Referenced by QQuickItemPrivate::nextPrevItemInTabFocusChain(), qt_tab_all_widgets(), and setTabFocusBehavior().
|
read |
the maximum distance, in pixels, that a finger can be moved between two consecutive taps and still have it detected as a double-tap
Definition at line 117 of file qstylehints.h.
Referenced by QQuickDeliveryAgentPrivate::checkIfDoubleTapped().
|
readwrite |
whether UI elements use hover effects.
This property is true
if UI elements should use hover effects. This is the standard behavior on desktop platforms with a mouse pointer, whereas on touch platforms the overhead of hover event delivery can be avoided.
Definition at line 117 of file qstylehints.h.
Referenced by setUseHoverEffects().
|
read |
the writing direction.
This property is true
if right-to-left writing direction is enabled, otherwise false
.
Definition at line 117 of file qstylehints.h.
Referenced by QLineEdit::createStandardContextMenu(), and QWidgetTextControl::createStandardContextMenu().
|
read |
Number of lines to scroll by default for each wheel click.
Definition at line 117 of file qstylehints.h.