QInputMethodQueryEvent Class
Die Klasse QInputMethodQueryEvent stellt ein Ereignis bereit, das vom Eingabekontext an Eingabeobjekte gesendet wird. Mehr...
Kopfzeile: | #include <QInputMethodQueryEvent> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
qmake: | QT += gui |
Vererbt: | QEvent |
Öffentliche Funktionen
QInputMethodQueryEvent(Qt::InputMethodQueries queries) | |
Qt::InputMethodQueries | queries() const |
void | setValue(Qt::InputMethodQuery query, const QVariant &value) |
QVariant | value(Qt::InputMethodQuery query) const |
Detaillierte Beschreibung
Wird von der Eingabemethode verwendet, um eine Reihe von Eigenschaften des Objekts abzufragen, um komplexe Eingabemethodenoperationen wie Unterstützung für umgebenden Text und Rückumwandlungen unterstützen zu können.
queries() gibt an, welche Eigenschaften abgefragt werden.
Das Objekt sollte setValue() auf das Ereignis aufrufen, um die angeforderten Daten auszufüllen, bevor accept() aufgerufen wird.
Dokumentation der Mitgliedsfunktionen
[explicit]
QInputMethodQueryEvent::QInputMethodQueryEvent(Qt::InputMethodQueries queries)
Konstruiert ein Abfrageereignis für die durch queries angegebenen Eigenschaften.
Qt::InputMethodQueries QInputMethodQueryEvent::queries() const
Gibt die vom Ereignis abgefragten Eigenschaften zurück.
void QInputMethodQueryEvent::setValue(Qt::InputMethodQuery query, const QVariant &value)
Setzt die Eigenschaft query auf value.
Siehe auch value().
QVariant QInputMethodQueryEvent::value(Qt::InputMethodQuery query) const
Gibt den Wert der Eigenschaft query zurück.
Siehe auch setValue().
© 2025 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.