[][src]Struct qt_gui::QStyleHints

#[repr(C)]pub struct QStyleHints { /* fields omitted */ }

The QStyleHints class contains platform specific hints and settings.

C++ class: QStyleHints.

C++ documentation:

The QStyleHints class contains platform specific hints and settings.

An object of this class, obtained from QGuiApplication, provides access to certain global user interface parameters of the current platform.

Access is read only; typically the platform itself provides the user a way to tune these parameters.

Access to these parameters are useful when implementing custom user interface components, in that they allow the components to exhibit the same behaviour and feel as other components.

Methods

impl QStyleHints[src]

pub fn cursor_flash_time_changed(&self) -> Signal<(c_int,)>[src]

This property holds the text cursor's flash (blink) time in milliseconds.

Returns a built-in Qt signal QStyleHints::cursorFlashTimeChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

This property holds 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.

Access functions:

int cursorFlashTime() const

Notifier signal:

void cursorFlashTimeChanged(int cursorFlashTime)

pub fn keyboard_input_interval_changed(&self) -> Signal<(c_int,)>[src]

This property holds the time limit, in milliseconds, that distinguishes a key press from two consecutive key presses.

Returns a built-in Qt signal QStyleHints::keyboardInputIntervalChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

This property holds the time limit, in milliseconds, that distinguishes a key press from two consecutive key presses.

Access functions:

int keyboardInputInterval() const

Notifier signal:

void keyboardInputIntervalChanged(int keyboardInputInterval)

pub fn mouse_double_click_interval_changed(&self) -> Signal<(c_int,)>[src]

This property holds the time limit in milliseconds that distinguishes a double click from two consecutive mouse clicks.

Returns a built-in Qt signal QStyleHints::mouseDoubleClickIntervalChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

This property holds the time limit in milliseconds that distinguishes a double click from two consecutive mouse clicks.

Access functions:

int mouseDoubleClickInterval() const

Notifier signal:

void mouseDoubleClickIntervalChanged(int mouseDoubleClickInterval)

pub fn mouse_press_and_hold_interval_changed(&self) -> Signal<(c_int,)>[src]

This property holds the time limit in milliseconds that activates a press and hold.

Returns a built-in Qt signal QStyleHints::mousePressAndHoldIntervalChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

This property holds the time limit in milliseconds that activates a press and hold.

This property was introduced in Qt 5.3.

Access functions:

int mousePressAndHoldInterval() const

Notifier signal:

void mousePressAndHoldIntervalChanged(int mousePressAndHoldInterval)

pub fn start_drag_distance_changed(&self) -> Signal<(c_int,)>[src]

This property holds the distance, in pixels, that the mouse must be moved with a button held down before a drag and drop operation will begin.

Returns a built-in Qt signal QStyleHints::startDragDistanceChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

This property holds 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:

if ((startPos - currentPos).manhattanLength() >= QApplication::startDragDistance()) startTheDrag();

Access functions:

int startDragDistance() const

Notifier signal:

void startDragDistanceChanged(int startDragDistance)

See also startDragTime, QPoint::manhattanLength(), and Drag and Drop.

pub fn start_drag_time_changed(&self) -> Signal<(c_int,)>[src]

This property holds the time, in milliseconds, that a mouse button must be held down before a drag and drop operation will begin.

Returns a built-in Qt signal QStyleHints::startDragTimeChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

This property holds 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.

Access functions:

int startDragTime() const

Notifier signal:

void startDragTimeChanged(int startDragTime)

See also startDragDistance and Drag and Drop.

pub fn tab_focus_behavior_changed(&self) -> Signal<(TabFocusBehavior,)>[src]

This property holds the focus behavior on press of the tab key.

Returns a built-in Qt signal QStyleHints::tabFocusBehaviorChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

This property holds the focus behavior on press of the tab key.

Note: Do not bind this value in QML because the change notifier signal is not implemented yet.

This property was introduced in Qt 5.5.

Access functions:

Qt::TabFocusBehavior tabFocusBehavior() const

Notifier signal:

void tabFocusBehaviorChanged(Qt::TabFocusBehavior tabFocusBehavior)

pub fn use_hover_effects_changed(&self) -> Signal<(bool,)>[src]

This property holds whether UI elements use hover effects.

Returns a built-in Qt signal QStyleHints::useHoverEffectsChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

This property holds 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.

This property was introduced in Qt 5.8.

Access functions:

bool useHoverEffects() const
void setUseHoverEffects(bool useHoverEffects)

Notifier signal:

void useHoverEffectsChanged(bool useHoverEffects)

pub fn wheel_scroll_lines_changed(&self) -> Signal<(c_int,)>[src]

Number of lines to scroll by default for each wheel click.

Returns a built-in Qt signal QStyleHints::wheelScrollLinesChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Number of lines to scroll by default for each wheel click.

This property was introduced in Qt 5.9.

Access functions:

int wheelScrollLines() const

Notifier signal:

void wheelScrollLinesChanged(int scrollLines)

pub unsafe fn cursor_flash_time(&self) -> c_int[src]

This property holds the text cursor's flash (blink) time in milliseconds.

Calls C++ function: int QStyleHints::cursorFlashTime() const.

C++ documentation:

This property holds 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.

Access functions:

int cursorFlashTime() const

Notifier signal:

void cursorFlashTimeChanged(int cursorFlashTime)

pub unsafe fn font_smoothing_gamma(&self) -> c_double[src]

This property holds the gamma value used in font smoothing.

Calls C++ function: double QStyleHints::fontSmoothingGamma() const.

C++ documentation:

This property holds the gamma value used in font smoothing.

Access functions:

qreal fontSmoothingGamma() const

pub unsafe fn keyboard_auto_repeat_rate(&self) -> c_int[src]

This property holds the rate, in events per second, in which additional repeated key presses will automatically be generated if a key is being held down.

Calls C++ function: int QStyleHints::keyboardAutoRepeatRate() const.

C++ documentation:

This property holds the rate, in events per second, in which additional repeated key presses will automatically be generated if a key is being held down.

Access functions:

int keyboardAutoRepeatRate() const

pub unsafe fn keyboard_input_interval(&self) -> c_int[src]

This property holds the time limit, in milliseconds, that distinguishes a key press from two consecutive key presses.

Calls C++ function: int QStyleHints::keyboardInputInterval() const.

C++ documentation:

This property holds the time limit, in milliseconds, that distinguishes a key press from two consecutive key presses.

Access functions:

int keyboardInputInterval() const

Notifier signal:

void keyboardInputIntervalChanged(int keyboardInputInterval)

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>[src]

Calls C++ function: virtual const QMetaObject* QStyleHints::metaObject() const.

pub unsafe fn mouse_double_click_distance(&self) -> c_int[src]

This is supported on cpp_lib_version="5.14.0" only.

This property holds 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

Calls C++ function: int QStyleHints::mouseDoubleClickDistance() const.

C++ documentation:

This property holds 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

This property was introduced in Qt 5.14.

Access functions:

int mouseDoubleClickDistance() const

pub unsafe fn mouse_double_click_interval(&self) -> c_int[src]

This property holds the time limit in milliseconds that distinguishes a double click from two consecutive mouse clicks.

Calls C++ function: int QStyleHints::mouseDoubleClickInterval() const.

C++ documentation:

This property holds the time limit in milliseconds that distinguishes a double click from two consecutive mouse clicks.

Access functions:

int mouseDoubleClickInterval() const

Notifier signal:

void mouseDoubleClickIntervalChanged(int mouseDoubleClickInterval)

pub unsafe fn mouse_press_and_hold_interval(&self) -> c_int[src]

This property holds the time limit in milliseconds that activates a press and hold.

Calls C++ function: int QStyleHints::mousePressAndHoldInterval() const.

C++ documentation:

This property holds the time limit in milliseconds that activates a press and hold.

This property was introduced in Qt 5.3.

Access functions:

int mousePressAndHoldInterval() const

Notifier signal:

void mousePressAndHoldIntervalChanged(int mousePressAndHoldInterval)

pub unsafe fn mouse_quick_selection_threshold(&self) -> c_int[src]

This is supported on cpp_lib_version="5.11.3" or cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Quick selection mouse threshold in QLineEdit.

Calls C++ function: int QStyleHints::mouseQuickSelectionThreshold() const.

C++ documentation:

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.

This property was introduced in Qt 5.11.

Access functions:

int mouseQuickSelectionThreshold() const

Notifier signal:

void mouseQuickSelectionThresholdChanged(int threshold)

pub unsafe fn mouse_quick_selection_threshold_changed(&self, threshold: c_int)[src]

This is supported on cpp_lib_version="5.11.3" or cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Quick selection mouse threshold in QLineEdit.

Calls C++ function: void QStyleHints::mouseQuickSelectionThresholdChanged(int threshold).

C++ documentation:

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.

This property was introduced in Qt 5.11.

Access functions:

int mouseQuickSelectionThreshold() const

Notifier signal:

void mouseQuickSelectionThresholdChanged(int threshold)

pub unsafe fn password_mask_character(&self) -> CppBox<QChar>[src]

This property holds the character used to mask the characters typed into text input fields in password mode.

Calls C++ function: QChar QStyleHints::passwordMaskCharacter() const.

C++ documentation:

This property holds the character used to mask the characters typed into text input fields in password mode.

Access functions:

QChar passwordMaskCharacter() const

pub unsafe fn password_mask_delay(&self) -> c_int[src]

This property holds the time, in milliseconds, a typed letter is displayed unshrouded in a text input field in password mode.

Calls C++ function: int QStyleHints::passwordMaskDelay() const.

C++ documentation:

This property holds the time, in milliseconds, a typed letter is displayed unshrouded in a text input field in password mode.

Access functions:

int passwordMaskDelay() const

pub unsafe fn qt_metacall(
    &self,
    arg1: Call,
    arg2: c_int,
    arg3: *mut *mut c_void
) -> c_int
[src]

Calls C++ function: virtual int QStyleHints::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

pub unsafe fn qt_metacast(&self, arg1: *const c_char) -> *mut c_void[src]

Calls C++ function: virtual void* QStyleHints::qt_metacast(const char* arg1).

pub unsafe fn set_cursor_flash_time(&self, cursor_flash_time: c_int)[src]

Calls C++ function: void QStyleHints::setCursorFlashTime(int cursorFlashTime).

pub unsafe fn set_focus_on_touch_release(&self) -> bool[src]

This property holds the event that should set input focus on focus objects.

Calls C++ function: bool QStyleHints::setFocusOnTouchRelease() const.

C++ documentation:

This property holds 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.

Access functions:

bool setFocusOnTouchRelease() const

pub unsafe fn set_keyboard_input_interval(&self, keyboard_input_interval: c_int)[src]

Calls C++ function: void QStyleHints::setKeyboardInputInterval(int keyboardInputInterval).

pub unsafe fn set_mouse_double_click_interval(
    &self,
    mouse_double_click_interval: c_int
)
[src]

Calls C++ function: void QStyleHints::setMouseDoubleClickInterval(int mouseDoubleClickInterval).

pub unsafe fn set_mouse_press_and_hold_interval(
    &self,
    mouse_press_and_hold_interval: c_int
)
[src]

Calls C++ function: void QStyleHints::setMousePressAndHoldInterval(int mousePressAndHoldInterval).

pub unsafe fn set_mouse_quick_selection_threshold(&self, threshold: c_int)[src]

This is supported on cpp_lib_version="5.11.3" or cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: void QStyleHints::setMouseQuickSelectionThreshold(int threshold).

pub unsafe fn set_show_shortcuts_in_context_menus(
    &self,
    show_shortcuts_in_context_menus: bool
)
[src]

This is supported on cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

true if the platform normally shows shortcut key sequences in context menus, otherwise false.

Calls C++ function: void QStyleHints::setShowShortcutsInContextMenus(bool showShortcutsInContextMenus).

C++ documentation:

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.

This property was introduced in Qt 5.10.

Access functions:

bool showShortcutsInContextMenus() const
void setShowShortcutsInContextMenus(bool showShortcutsInContextMenus)

Notifier signal:

void showShortcutsInContextMenusChanged(bool)

pub unsafe fn set_start_drag_distance(&self, start_drag_distance: c_int)[src]

Calls C++ function: void QStyleHints::setStartDragDistance(int startDragDistance).

pub unsafe fn set_start_drag_time(&self, start_drag_time: c_int)[src]

Calls C++ function: void QStyleHints::setStartDragTime(int startDragTime).

pub unsafe fn set_tab_focus_behavior(
    &self,
    tab_focus_behavior: TabFocusBehavior
)
[src]

Calls C++ function: void QStyleHints::setTabFocusBehavior(Qt::TabFocusBehavior tabFocusBehavior).

pub unsafe fn set_use_hover_effects(&self, use_hover_effects: bool)[src]

This property holds whether UI elements use hover effects.

Calls C++ function: void QStyleHints::setUseHoverEffects(bool useHoverEffects).

C++ documentation:

This property holds 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.

This property was introduced in Qt 5.8.

Access functions:

bool useHoverEffects() const
void setUseHoverEffects(bool useHoverEffects)

Notifier signal:

void useHoverEffectsChanged(bool useHoverEffects)

pub unsafe fn set_wheel_scroll_lines(&self, scroll_lines: c_int)[src]

Calls C++ function: void QStyleHints::setWheelScrollLines(int scrollLines).

pub unsafe fn show_is_full_screen(&self) -> bool[src]

This property holds whether the platform defaults to fullscreen windows.

Calls C++ function: bool QStyleHints::showIsFullScreen() const.

C++ documentation:

This property holds whether the platform defaults to fullscreen windows.

This property is true if the platform defaults to windows being fullscreen, otherwise false.

Note: The platform may still choose to show certain windows non-fullscreen, such as popups or dialogs. This property only reports the default behavior.

Access functions:

bool showIsFullScreen() const

See also QWindow::show() and showIsMaximized().

pub unsafe fn show_is_maximized(&self) -> bool[src]

This property holds whether the platform defaults to maximized windows.

Calls C++ function: bool QStyleHints::showIsMaximized() const.

C++ documentation:

This property holds whether the platform defaults to maximized windows.

This property is true if the platform defaults to windows being maximized, otherwise false.

Note: The platform may still choose to show certain windows non-maximized, such as popups or dialogs. This property only reports the default behavior.

This property was introduced in Qt 5.6.

Access functions:

bool showIsMaximized() const

See also QWindow::show() and showIsFullScreen().

pub unsafe fn show_shortcuts_in_context_menus(&self) -> bool[src]

This is supported on cpp_lib_version="5.11.3" or cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

true if the platform normally shows shortcut key sequences in context menus, otherwise false.

Calls C++ function: bool QStyleHints::showShortcutsInContextMenus() const.

C++ documentation:

true if the platform normally shows shortcut key sequences in context menus, otherwise false.

This property was introduced in Qt 5.10.

Access functions:

bool showShortcutsInContextMenus() const

pub unsafe fn show_shortcuts_in_context_menus_changed(&self, arg1: bool)[src]

This is supported on cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

true if the platform normally shows shortcut key sequences in context menus, otherwise false.

Calls C++ function: void QStyleHints::showShortcutsInContextMenusChanged(bool arg1).

C++ documentation:

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.

This property was introduced in Qt 5.10.

Access functions:

bool showShortcutsInContextMenus() const
void setShowShortcutsInContextMenus(bool showShortcutsInContextMenus)

Notifier signal:

void showShortcutsInContextMenusChanged(bool)

pub unsafe fn single_click_activation(&self) -> bool[src]

This property holds whether items are activated by single or double click.

Calls C++ function: bool QStyleHints::singleClickActivation() const.

C++ documentation:

This property holds 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.

This property was introduced in Qt 5.5.

Access functions:

bool singleClickActivation() const

pub unsafe fn start_drag_distance(&self) -> c_int[src]

This property holds the distance, in pixels, that the mouse must be moved with a button held down before a drag and drop operation will begin.

Calls C++ function: int QStyleHints::startDragDistance() const.

C++ documentation:

This property holds 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:

if ((startPos - currentPos).manhattanLength() >= QApplication::startDragDistance()) startTheDrag();

Access functions:

int startDragDistance() const

Notifier signal:

void startDragDistanceChanged(int startDragDistance)

See also startDragTime, QPoint::manhattanLength(), and Drag and Drop.

pub unsafe fn start_drag_time(&self) -> c_int[src]

This property holds the time, in milliseconds, that a mouse button must be held down before a drag and drop operation will begin.

Calls C++ function: int QStyleHints::startDragTime() const.

C++ documentation:

This property holds 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.

Access functions:

int startDragTime() const

Notifier signal:

void startDragTimeChanged(int startDragTime)

See also startDragDistance and Drag and Drop.

pub unsafe fn start_drag_velocity(&self) -> c_int[src]

This property holds 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.

Calls C++ function: int QStyleHints::startDragVelocity() const.

C++ documentation:

This property holds 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.

Access functions:

int startDragVelocity() const

See also startDragDistance and Drag and Drop.

pub unsafe fn static_meta_object() -> Ref<QMetaObject>[src]

Returns a reference to the staticMetaObject field.

pub unsafe fn tab_focus_behavior(&self) -> TabFocusBehavior[src]

This property holds the focus behavior on press of the tab key.

Calls C++ function: Qt::TabFocusBehavior QStyleHints::tabFocusBehavior() const.

C++ documentation:

This property holds the focus behavior on press of the tab key.

Note: Do not bind this value in QML because the change notifier signal is not implemented yet.

This property was introduced in Qt 5.5.

Access functions:

Qt::TabFocusBehavior tabFocusBehavior() const

Notifier signal:

void tabFocusBehaviorChanged(Qt::TabFocusBehavior tabFocusBehavior)

pub unsafe fn touch_double_tap_distance(&self) -> c_int[src]

This is supported on cpp_lib_version="5.14.0" only.

This property holds the maximum distance, in pixels, that a finger can be moved between two consecutive taps and still have it detected as a double-tap

Calls C++ function: int QStyleHints::touchDoubleTapDistance() const.

C++ documentation:

This property holds the maximum distance, in pixels, that a finger can be moved between two consecutive taps and still have it detected as a double-tap

This property was introduced in Qt 5.14.

Access functions:

int touchDoubleTapDistance() const

pub unsafe fn tr(
    s: *const c_char,
    c: *const c_char,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString QStyleHints::tr(const char* s, const char* c, int n).

pub unsafe fn tr_utf8(
    s: *const c_char,
    c: *const c_char,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString QStyleHints::trUtf8(const char* s, const char* c, int n).

pub unsafe fn use_hover_effects(&self) -> bool[src]

This property holds whether UI elements use hover effects.

Calls C++ function: bool QStyleHints::useHoverEffects() const.

C++ documentation:

This property holds 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.

This property was introduced in Qt 5.8.

Access functions:

bool useHoverEffects() const
void setUseHoverEffects(bool useHoverEffects)

Notifier signal:

void useHoverEffectsChanged(bool useHoverEffects)

pub unsafe fn use_rtl_extensions(&self) -> bool[src]

This property holds the writing direction.

Calls C++ function: bool QStyleHints::useRtlExtensions() const.

C++ documentation:

This property holds the writing direction.

This property is true if right-to-left writing direction is enabled, otherwise false.

Access functions:

bool useRtlExtensions() const

pub unsafe fn wheel_scroll_lines(&self) -> c_int[src]

Number of lines to scroll by default for each wheel click.

Calls C++ function: int QStyleHints::wheelScrollLines() const.

C++ documentation:

Number of lines to scroll by default for each wheel click.

This property was introduced in Qt 5.9.

Access functions:

int wheelScrollLines() const

Notifier signal:

void wheelScrollLinesChanged(int scrollLines)

Trait Implementations

impl CppDeletable for QStyleHints[src]

unsafe fn delete(&self)[src]

The QStyleHints class contains platform specific hints and settings.

Calls C++ function: [destructor] void QStyleHints::~QStyleHints().

C++ documentation:

The QStyleHints class contains platform specific hints and settings.

An object of this class, obtained from QGuiApplication, provides access to certain global user interface parameters of the current platform.

Access is read only; typically the platform itself provides the user a way to tune these parameters.

Access to these parameters are useful when implementing custom user interface components, in that they allow the components to exhibit the same behaviour and feel as other components.

impl Deref for QStyleHints[src]

type Target = QObject

The resulting type after dereferencing.

fn deref(&self) -> &QObject[src]

Calls C++ function: QObject* static_cast<QObject*>(QStyleHints* ptr).

impl DynamicCast<QStyleHints> for QObject[src]

unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QStyleHints>[src]

Calls C++ function: QStyleHints* dynamic_cast<QStyleHints*>(QObject* ptr).

impl StaticDowncast<QStyleHints> for QObject[src]

unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QStyleHints>[src]

Calls C++ function: QStyleHints* static_cast<QStyleHints*>(QObject* ptr).

impl StaticUpcast<QObject> for QStyleHints[src]

unsafe fn static_upcast(ptr: Ptr<QStyleHints>) -> Ptr<QObject>[src]

Calls C++ function: QObject* static_cast<QObject*>(QStyleHints* ptr).

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.