En esta página

QInputMethodQueryEvent Class

La clase QInputMethodQueryEvent provee un evento enviado por el contexto de entrada a los objetos de entrada. Más...

Cabecera: #include <QInputMethodQueryEvent>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
Hereda: QEvent

Funciones Públicas

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

Descripción detallada

Es utilizado por el método de entrada para consultar un conjunto de propiedades del objeto para poder soportar operaciones complejas del método de entrada como soporte para texto circundante y reconversiones.

queries() especifica qué propiedades se consultan.

El objeto debe llamar a setValue() en el evento para rellenar los datos solicitados antes de llamar a accept().

Documentación de las funciones miembro

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

Construye un evento de consulta para las propiedades dadas por queries.

Qt::InputMethodQueries QInputMethodQueryEvent::queries() const

Devuelve las propiedades consultadas por el evento.

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

Establece la propiedad query a value.

Véase también value().

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

Devuelve el valor de la propiedad query.

Véase también setValue().

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.