Hello all,
im developing android application to catch key strokes.
As far as im using real keyboard, all works fine...
However, if i use:
Keys.onPressed: { JS.keyboardListener(event.key); }
Keys.onPressed: { JS.keyboardListener(event.key); }
To copy to clipboard, switch view to plain text mode
them im having the error:
W libInventory_armeabi-v7a.so: Unhandled key code 10036 !
so, does the application use some virtual keyboard which cant handle its keys?
is there a way to convert them into common ones so they will correcspond to real ascii keys?
Basicaly, im just low in c++, therefore what I tried is to install nativeEventFilter, exactly this way (just main.cpp simple approach):
#include <QAbstractEventDispatcher>
#include <QAbstractNativeEventFilter>
class MyAppNativeEventFilter : public QAbstractNativeEventFilter
{
virtual bool nativeEventFilter
(const QByteArray &eventType,
void *message,
long *result
) override;
};
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
// Native Filter
MyAppNativeEventFilter filter;
app.installNativeEventFilter(&filter);
return app.exec();
}
#include <QAbstractEventDispatcher>
#include <QAbstractNativeEventFilter>
class MyAppNativeEventFilter : public QAbstractNativeEventFilter
{
virtual bool nativeEventFilter(const QByteArray &eventType, void *message, long *result) override;
};
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
// Native Filter
MyAppNativeEventFilter filter;
app.installNativeEventFilter(&filter);
return app.exec();
}
To copy to clipboard, switch view to plain text mode
but it just gives me thre errors while compile:
C:\Qt\Projects\Sources\Inventory\main.cpp:-1: error: error: undefined reference to 'vtable for MyAppNativeEventFilter'
:-1: error: the vtable symbol may be undefined because the class is missing its key function
:-1: error: linker command failed with exit code 1 (use -v to see invocation)
C:\Qt\Projects\Sources\Inventory\main.cpp:-1: error: error: undefined reference to 'vtable for MyAppNativeEventFilter'
:-1: error: the vtable symbol may be undefined because the class is missing its key function
:-1: error: linker command failed with exit code 1 (use -v to see invocation)
To copy to clipboard, switch view to plain text mode
so I would very much kindly like to ask you if you can help me on this issue
Bookmarks