Qt:Документация 4.3.2/qwsinputmethod-obsolete

Материал из Wiki.crossplatform.ru

Версия от 09:58, 29 января 2009; Root (Обсуждение | вклад)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск
40px Внимание: Актуальная версия перевода документации находится здесь

__NOTOC__

Image:qt-logo.png

Главная · Все классы · Основные классы · Классы по группам · Модули · Функции

Image:trolltech-logo.png

Содержание

[править] Obsolete Members for QWSInputMethod

The following class members are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.



[править] Защищенные функции

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

[править] Описание функций-членов

[править]
void QWSInputMethod::sendIMEvent ( QWSServer::IMState state, const QString & text, int cursorPosition, int selectionLength = 0 ) [protected]

Sends a QInputMethodEvent object to the focus widget.

If the specified 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.

Use sendEvent(), sendPreeditString() or sendCommitString() instead.



Copyright © 2007 Trolltech Trademarks
Qt 4.3.2