提供對輸入上下文的訪問。 更多...
| 頭: | #include <QVirtualKeyboardInputContext> |
| qmake: | QT += virtualkeyboard |
| 實例化: | InputContext |
| 繼承: | QObject |
|
|
| int | anchorPosition () const |
| bool | anchorRectIntersectsClipRect () const |
| QRectF | anchorRectangle () const |
| void | clear () |
| void | commit () |
| void | commit (const QString & text , int replaceFrom = 0, int replaceLength = 0) |
| int | cursorPosition () const |
| bool | cursorRectIntersectsClipRect () const |
| QRectF | cursorRectangle () const |
| QVirtualKeyboardInputEngine * | inputEngine () const |
| Qt::InputMethodHints | inputMethodHints () const |
| bool | isAnimating () const |
| bool | isCapsLockActive () const |
| bool | isSelectionControlVisible () const |
| bool | isShiftActive () const |
| bool | isUppercase () const |
| QString | locale () const |
| QString | preeditText () const |
| QList<QInputMethodEvent::Attribute> | preeditTextAttributes () const |
| QString | selectedText () const |
| void | sendKeyClick (int key , const QString & text , int modifiers = 0) |
| void | setAnimating (bool isAnimating ) |
| void | setPreeditText (const QString & text , QList<QInputMethodEvent::Attribute> 屬性 = QList<QInputMethodEvent::Attribute>(), int replaceFrom = 0, int replaceLength = 0) |
| QString | surroundingText () const |
| void | anchorPositionChanged () |
| void | anchorRectIntersectsClipRectChanged () |
| void | anchorRectangleChanged () |
| void | animatingChanged () |
| void | capsLockActiveChanged () |
| void | cursorPositionChanged () |
| void | cursorRectIntersectsClipRectChanged () |
| void | cursorRectangleChanged () |
| void | inputMethodHintsChanged () |
| void | localeChanged () |
| void | preeditTextChanged () |
| void | selectedTextChanged () |
| void | selectionControlVisibleChanged () |
| void | shiftActiveChanged () |
| void | surroundingTextChanged () |
| void | uppercaseChanged () |
| const QMetaObject | staticMetaObject |
提供對輸入上下文的訪問。
此特性保持錨點位置。
此特性被改變,當錨點位置改變時。
訪問函數:
| int | anchorPosition () const |
通知程序信號:
| void | anchorPositionChanged () |
保持
true
if the bounding rectangle of the selection anchor intersects the exposed input item rectangle.
訪問函數:
| bool | anchorRectIntersectsClipRect () const |
通知程序信號:
| void | anchorRectIntersectsClipRectChanged () |
另請參閱 Qt::ImAnchorRectangle and Qt::ImInputItemClipRectangle .
此特性保持錨點矩形。
This property is changed when the anchor rectangle changes.
訪問函數:
| QRectF | anchorRectangle () const |
通知程序信號:
| void | anchorRectangleChanged () |
此特性保持動畫狀態。
Use this property to set the animating status, for example during UI transitioning states.
訪問函數:
| bool | isAnimating () const |
| void | setAnimating (bool isAnimating ) |
通知程序信號:
| void | animatingChanged () |
此特性保持大寫鎖定狀態。
此特性被改變,當大寫鎖定狀態改變時。
訪問函數:
| bool | isCapsLockActive () const |
通知程序信號:
| void | capsLockActiveChanged () |
此特性保持光標位置。
此特性被改變,當光標位置改變時。
訪問函數:
| int | cursorPosition () const |
通知程序信號:
| void | cursorPositionChanged () |
保持
true
if the bounding rectangle of the input cursor intersects the exposed input item rectangle.
訪問函數:
| bool | cursorRectIntersectsClipRect () const |
通知程序信號:
| void | cursorRectIntersectsClipRectChanged () |
另請參閱 Qt::ImCursorRectangle and Qt::ImInputItemClipRectangle .
此特性保持光標矩形。
This property is changed when the cursor rectangle changes.
訪問函數:
| QRectF | cursorRectangle () const |
通知程序信號:
| void | cursorRectangleChanged () |
此特性保持輸入引擎。
This property stores the input engine.
訪問函數:
| QVirtualKeyboardInputEngine * | inputEngine () const |
此特性保持輸入法提示。
This property is changed when the input method hints changes.
訪問函數:
| Qt::InputMethodHints | inputMethodHints () const |
通知程序信號:
| void | inputMethodHintsChanged () |
此特性保持區域設置。
This property is changed when the input locale changes.
訪問函數:
| QString | locale () const |
通知程序信號:
| void | localeChanged () |
此特性保持預編輯文本。
This property sets the pre-edit text.
訪問函數:
| QString | preeditText () const |
| void | setPreeditText (const QString & text , QList<QInputMethodEvent::Attribute> 屬性 = QList<QInputMethodEvent::Attribute>(), int replaceFrom = 0, int replaceLength = 0) |
通知程序信號:
| void | preeditTextChanged () |
此特性保持選中文本。
This property is changed when the selected text changes.
訪問函數:
| QString | selectedText () const |
通知程序信號:
| void | selectedTextChanged () |
保持
true
if the selection control is currently visible.
訪問函數:
| bool | isSelectionControlVisible () const |
通知程序信號:
| void | selectionControlVisibleChanged () |
此特性保持 Shift 狀態。
This property is changed when the shift status changes.
訪問函數:
| bool | isShiftActive () const |
通知程序信號:
| void | shiftActiveChanged () |
此特性保持圍繞光標的周圍文本。
This property is changed when the surrounding text around the cursor changes.
訪問函數:
| QString | surroundingText () const |
通知程序信號:
| void | surroundingTextChanged () |
此特性保持大寫狀態。
此特性是
true
當
shiftActive
or
capsLockActive
is
true
.
訪問函數:
| bool | isUppercase () const |
通知程序信號:
| void | uppercaseChanged () |
清零預編輯文本。
注意: 此函數可以被援引,通過元對象係統和從 QML。見 Q_INVOKABLE .
提交當前的預編輯文本。
注意: 此函數可以被援引,通過元對象係統和從 QML。見 Q_INVOKABLE .
提交最終 text to the input item and optionally modifies the text relative to the start of the pre-edit text. If replaceFrom is non-zero, the text replaces the contents relative to replaceFrom with a length of replaceLength .
注意: 此函數可以被援引,通過元對象係統和從 QML。見 Q_INVOKABLE .
發送鍵點擊事件采用給定 key , text and modifiers 到目前擁有聚焦的輸入項。
注意: 此函數可以被援引,通過元對象係統和從 QML。見 Q_INVOKABLE .