Struct qt_core::InputMethodHint
source · pub struct InputMethodHint(/* private fields */);
Expand description
Flags that alter the behavior:
C++ enum: Qt::InputMethodHint
.
Flags that alter the behavior:
Flags that restrict input (exclusive flags):
Masks:
Note: If several exclusive flags are OR-ed together, the resulting character set will consist of the union of the specified sets. For instance specifying ImhNumbersOnly
and ImhUppercaseOnly
would yield a set consisting of numbers and uppercase letters.
The InputMethodHints type is a typedef for QFlags<InputMethodHint>. It stores an OR combination of InputMethodHint values.
See also QGraphicsItem::inputMethodHints().
Implementations§
source§impl InputMethodHint
impl InputMethodHint
sourcepub const ImhNone: InputMethodHint = _
pub const ImhNone: InputMethodHint = _
No hints. (C++ enum variant: ImhNone = 0
)
sourcepub const ImhHiddenText: InputMethodHint = _
pub const ImhHiddenText: InputMethodHint = _
The input method should not show the characters while typing. This is automatically set when setting QLineEdit::echoMode to Password
. Note that setting ImhHiddenText
does not change the echo mode. (C++ enum variant: ImhHiddenText = 1
)
sourcepub const ImhSensitiveData: InputMethodHint = _
pub const ImhSensitiveData: InputMethodHint = _
Typed text should not be stored by the active input method in any persistent storage like predictive user dictionary. (C++ enum variant: ImhSensitiveData = 2
)
sourcepub const ImhNoAutoUppercase: InputMethodHint = _
pub const ImhNoAutoUppercase: InputMethodHint = _
The input method should not try to automatically switch to upper case when a sentence ends. (C++ enum variant: ImhNoAutoUppercase = 4
)
sourcepub const ImhPreferNumbers: InputMethodHint = _
pub const ImhPreferNumbers: InputMethodHint = _
Numbers are preferred (but not required). (C++ enum variant: ImhPreferNumbers = 8
)
sourcepub const ImhPreferUppercase: InputMethodHint = _
pub const ImhPreferUppercase: InputMethodHint = _
Upper case letters are preferred (but not required). (C++ enum variant: ImhPreferUppercase = 16
)
sourcepub const ImhPreferLowercase: InputMethodHint = _
pub const ImhPreferLowercase: InputMethodHint = _
Lower case letters are preferred (but not required). (C++ enum variant: ImhPreferLowercase = 32
)
sourcepub const ImhNoPredictiveText: InputMethodHint = _
pub const ImhNoPredictiveText: InputMethodHint = _
Do not use predictive text (i.e. dictionary lookup) while typing. (C++ enum variant: ImhNoPredictiveText = 64
)
sourcepub const ImhDate: InputMethodHint = _
pub const ImhDate: InputMethodHint = _
The text editor functions as a date field. (C++ enum variant: ImhDate = 128
)
sourcepub const ImhTime: InputMethodHint = _
pub const ImhTime: InputMethodHint = _
The text editor functions as a time field. (C++ enum variant: ImhTime = 256
)
sourcepub const ImhPreferLatin: InputMethodHint = _
pub const ImhPreferLatin: InputMethodHint = _
Latin characters are preferred (but not required). (C++ enum variant: ImhPreferLatin = 512
)
sourcepub const ImhMultiLine: InputMethodHint = _
pub const ImhMultiLine: InputMethodHint = _
Multiple lines can be entered into the text field. (C++ enum variant: ImhMultiLine = 1024
)
sourcepub const ImhDigitsOnly: InputMethodHint = _
pub const ImhDigitsOnly: InputMethodHint = _
Only digits are allowed. (C++ enum variant: ImhDigitsOnly = 65536
)
sourcepub const ImhFormattedNumbersOnly: InputMethodHint = _
pub const ImhFormattedNumbersOnly: InputMethodHint = _
Only number input is allowed. This includes decimal point and minus sign. (C++ enum variant: ImhFormattedNumbersOnly = 131072
)
sourcepub const ImhUppercaseOnly: InputMethodHint = _
pub const ImhUppercaseOnly: InputMethodHint = _
Only upper case letter input is allowed. (C++ enum variant: ImhUppercaseOnly = 262144
)
sourcepub const ImhLowercaseOnly: InputMethodHint = _
pub const ImhLowercaseOnly: InputMethodHint = _
Only lower case letter input is allowed. (C++ enum variant: ImhLowercaseOnly = 524288
)
sourcepub const ImhDialableCharactersOnly: InputMethodHint = _
pub const ImhDialableCharactersOnly: InputMethodHint = _
Only characters suitable for phone dialing are allowed. (C++ enum variant: ImhDialableCharactersOnly = 1048576
)
sourcepub const ImhEmailCharactersOnly: InputMethodHint = _
pub const ImhEmailCharactersOnly: InputMethodHint = _
Only characters suitable for email addresses are allowed. (C++ enum variant: ImhEmailCharactersOnly = 2097152
)
sourcepub const ImhUrlCharactersOnly: InputMethodHint = _
pub const ImhUrlCharactersOnly: InputMethodHint = _
Only characters suitable for URLs are allowed. (C++ enum variant: ImhUrlCharactersOnly = 4194304
)
sourcepub const ImhLatinOnly: InputMethodHint = _
pub const ImhLatinOnly: InputMethodHint = _
Only latin based input is allowed. (C++ enum variant: ImhLatinOnly = 8388608
)
sourcepub const ImhExclusiveInputMask: InputMethodHint = _
pub const ImhExclusiveInputMask: InputMethodHint = _
This mask yields nonzero if any of the exclusive flags are used. (C++ enum variant: ImhExclusiveInputMask = -65536
)
sourcepub const ImhNoEditMenu: InputMethodHint = _
pub const ImhNoEditMenu: InputMethodHint = _
Do not use built-in edit menu. This flag was introduced in Qt 5.11. (C++ enum variant: ImhNoEditMenu = 2048
)
sourcepub const ImhNoTextHandles: InputMethodHint = _
pub const ImhNoTextHandles: InputMethodHint = _
Do not use built-in text cursor and selection handles. This flag was introduced in Qt 5.11. (C++ enum variant: ImhNoTextHandles = 4096
)
Trait Implementations§
source§impl<T: Into<QFlags<InputMethodHint>>> BitOr<T> for InputMethodHint
impl<T: Into<QFlags<InputMethodHint>>> BitOr<T> for InputMethodHint
§type Output = QFlags<InputMethodHint>
type Output = QFlags<InputMethodHint>
|
operator.source§impl Clone for InputMethodHint
impl Clone for InputMethodHint
source§fn clone(&self) -> InputMethodHint
fn clone(&self) -> InputMethodHint
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InputMethodHint
impl Debug for InputMethodHint
source§impl From<InputMethodHint> for QFlags<InputMethodHint>
impl From<InputMethodHint> for QFlags<InputMethodHint>
source§fn from(value: InputMethodHint) -> Self
fn from(value: InputMethodHint) -> Self
source§impl From<InputMethodHint> for c_int
impl From<InputMethodHint> for c_int
source§fn from(value: InputMethodHint) -> Self
fn from(value: InputMethodHint) -> Self
source§impl From<i32> for InputMethodHint
impl From<i32> for InputMethodHint
source§impl PartialEq for InputMethodHint
impl PartialEq for InputMethodHint
source§fn eq(&self, other: &InputMethodHint) -> bool
fn eq(&self, other: &InputMethodHint) -> bool
self
and other
values to be equal, and is used
by ==
.