IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QInputMethodQueryEvent Class

The QInputMethodQueryEvent class provides an event sent by the input context to input objects.

This class was introduced in Qt 5.0.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QInputMethodQueryEvent Class

  • Header: QInputMethodQueryEvent

  • Since: Qt 5.0

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS Gui)

    target_link_libraries(mytarget PRIVATE Qt6::Gui)

  • qmake: QT += gui

  • Inherits: QEvent

Detailed Description

It is used by the input method to query a set of properties of the object to be able to support complex input method operations as support for surrounding text and reconversions.

queries() specifies which properties are queried.

The object should call setValue() on the event to fill in the requested data before calling accept().

Member Function Documentation

 

[explicit] QInputMethodQueryEvent::QInputMethodQueryEvent(Qt::InputMethodQueries queries)

Constructs a query event for properties given by queries.

Qt::InputMethodQueries QInputMethodQueryEvent::queries() const

Returns the properties queried by the event.

void QInputMethodQueryEvent::setValue(Qt::InputMethodQuery query, const QVariant &value)

Sets property query to value.

See Also

See also value()

QVariant QInputMethodQueryEvent::value(Qt::InputMethodQuery query) const

Returns value of the property query.

See Also

See also setValue()

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+