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 () 代替。