23#include "PlatformAdaptor_Abstract.h"
24#include "qcoreevent.h"
26#include "qquickitem.h"
30class ImFixer :
public QObject {
33 bool eventFilter(QObject *obj, QEvent *event)
override {
34 if (event->type() == QEvent::InputMethodQuery) {
35 auto* imEvt =
static_cast<QInputMethodQueryEvent *
>(event);
36 if (imEvt->queries() == Qt::InputMethodQuery::ImCursorRectangle) {
37 imEvt->setValue(Qt::InputMethodQuery::ImCursorRectangle, QRectF());
41 return QObject::eventFilter(obj, event);
91 static thread_local ImFixer imf;
92 item->installEventFilter(&imf);
107#warning documentation
108 static Q_INVOKABLE
void saveScreenshot(
const QImage &, QString);
static Q_INVOKABLE Platform::PlatformAdaptor * platformAdaptor()
Pointer to appplication-wide static PlatformAdaptor instance.