Struct qt_core::NavigationMode
source · pub struct NavigationMode(/* private fields */);
Expand description
This enum type describes the mode for moving focus.
C++ enum: Qt::NavigationMode
.
This enum type describes the mode for moving focus.
Note: In 4.6, cursor navigation is only implemented for Symbian OS. On other platforms, it behaves as NavigationModeNone.
This enum was introduced or modified in Qt 4.6.
See also QApplication::setNavigationMode() and QApplication::navigationMode().
Implementations§
Only the touch screen is used. (C++ enum variant: NavigationModeNone = 0
)
Qt::Key_Up and Qt::Key_Down are used to change focus. (C++ enum variant: NavigationModeKeypadTabOrder = 1
)
Qt::Key_Up, Qt::Key_Down, Qt::Key_Left and Qt::Key_Right are used to change focus. (C++ enum variant: NavigationModeKeypadDirectional = 2
)
The mouse cursor is used to change focus, it is displayed only on non touchscreen devices. The keypad is used to implement a virtual cursor, unless the device has an analog mouse type of input device (e.g. touchpad). This is the recommended setting for an application such as a web browser that needs pointer control on both touch and non-touch devices. (C++ enum variant: NavigationModeCursorAuto = 3
)
The mouse cursor is used to change focus, it is displayed regardless of device type. The keypad is used to implement a virtual cursor, unless the device has an analog mouse type of input device (e.g. touchpad) (C++ enum variant: NavigationModeCursorForceVisible = 4
)
Trait Implementations§
source§fn clone(&self) -> NavigationMode
fn clone(&self) -> NavigationMode
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§fn from(value: NavigationMode) -> Self
fn from(value: NavigationMode) -> Self
source§fn eq(&self, other: &NavigationMode) -> bool
fn eq(&self, other: &NavigationMode) -> bool
self
and other
values to be equal, and is used
by ==
.