In questa pagina

QInputMethodQueryEvent Class

La classe `QInputMethodQueryEvent` fornisce un evento inviato dal contesto di input agli oggetti di input. Maggiori informazioni...

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

Funzioni pubbliche

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

Funzioni protette

QInputMethodQueryEvent(QInputMethodQueryEvent &&)
QInputMethodQueryEvent &operator=(QInputMethodQueryEvent &&)
QInputMethodQueryEvent &operator=(const QInputMethodQueryEvent &other)

Descrizione dettagliata

Viene utilizzato dal metodo di immissione per interrogare un insieme di proprietà dell'oggetto, al fine di supportare operazioni complesse del metodo di immissione, quali il supporto per il testo circostante e le riconversioni.

queries() specifica quali proprietà vengono interrogate.

L'oggetto dovrebbe chiamare setValue() al verificarsi dell'evento per compilare i dati richiesti prima di chiamare accept().

Documentazione delle funzioni membro

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

Crea un evento di query per le proprietà specificate all'indirizzo queries.

[protected delete] QInputMethodQueryEvent::QInputMethodQueryEvent(QInputMethodQueryEvent &&)

Crea un'istanza di ` QInputMethodQueryEvent`. Questa funzione è stata eliminata.

Qt::InputMethodQueries QInputMethodQueryEvent::queries() const

Restituisce le proprietà interrogate dall'evento.

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

Imposta la proprietà “ query ” su “ value ”.

Vedi anche value().

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

Restituisce il valore della proprietà ` query`.

Vedi anche setValue().

[protected delete] QInputMethodQueryEvent &QInputMethodQueryEvent::operator=(QInputMethodQueryEvent &&)

Assegna " other " a questa istanza " QInputMethodQueryEvent ". Questa funzione viene eliminata.

[noexcept protected default] QInputMethodQueryEvent &QInputMethodQueryEvent::operator=(const QInputMethodQueryEvent &other)

Assegna “ other ” a questa istanza di “ QInputMethodQueryEvent ”.

© 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.