QInputMethodQueryEvent Class
Die Klasse „QInputMethodQueryEvent“ stellt ein Ereignis bereit, das vom Eingabekontext an Eingabeobjekte gesendet wird. Mehr...
| Header: | #include <QInputMethodQueryEvent> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
| qmake: | QT += gui |
| Erbt von: | 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 |
Geschützte Funktionen
| QInputMethodQueryEvent(QInputMethodQueryEvent &&) | |
| QInputMethodQueryEvent & | operator=(QInputMethodQueryEvent &&) |
| QInputMethodQueryEvent & | operator=(const QInputMethodQueryEvent &other) |
Ausführliche Beschreibung
Wird von der Eingabemethode verwendet, um eine Reihe von Eigenschaften des Objekts abzufragen, um komplexe Eingabemethodenoperationen wie die Unterstützung für umgebenden Text und Rückkonvertierungen zu ermöglichen.
queries() gibt an, welche Eigenschaften abgefragt werden.
Das Objekt sollte bei Eintreten des Ereignisses die Methode ` setValue()` aufrufen, um die angeforderten Daten zu füllen, bevor ` accept()` aufgerufen wird.
Dokumentation der Member-Funktionen
[explicit] QInputMethodQueryEvent::QInputMethodQueryEvent(Qt::InputMethodQueries queries)
Erstellt ein Abfrageereignis für die unter queries angegebenen Eigenschaften.
[protected delete] QInputMethodQueryEvent::QInputMethodQueryEvent(QInputMethodQueryEvent &&)
Erstellt eine Instanz von ` QInputMethodQueryEvent`. Diese Funktion wurde gelöscht.
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()“.
[protected delete] QInputMethodQueryEvent &QInputMethodQueryEvent::operator=(QInputMethodQueryEvent &&)
other Weist der Instanz „ QInputMethodQueryEvent “ die Instanz „ “ zu. Diese Funktion wird gelöscht.
[noexcept protected default] QInputMethodQueryEvent &QInputMethodQueryEvent::operator=(const QInputMethodQueryEvent &other)
other Weist dieser Instanz von „ QInputMethodQueryEvent “ die Werte von „ “ zu. “ zu dieser Instanz von „ “ zu.
© 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.