Obsolete Members for QWSInputMethod

以下成員源於類 QWSInputMethod 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。

保護函數

(obsolete) void sendIMEvent (QWSServer::IMState state , const QString & text , int cursorPosition , int selectionLength = 0)

成員函數文檔編製

[protected] void QWSInputMethod:: sendIMEvent ( QWSServer::IMState state , const QString & text , int cursorPosition , int selectionLength = 0)

Sends a QInputMethodEvent object to the focus widget.

若指定 state is QWSServer::IMCompose , text is a preedit string, cursorPosition is the cursor's position within the preedit string, and selectionLength is the number of characters (starting at cursorPosition ) that should be marked as selected by the input widget receiving the event. If the specified state is QWSServer::IMEnd , text is a commit string.

使用 sendEvent (), sendPreeditString () 或 sendCommitString () 代替。