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
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 more