QML keyboard indicator for my personnal needs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

24 lines
672 B

#include <QApplication>
#include <QQmlApplicationEngine>
#include <QDebug>
#include "xcbEventFilter.h"
int main(int argc, char *argv[])
{
/* create qapp and QML engine */
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QApplication app(argc, argv);
QQmlApplicationEngine engine;
engine.load(QUrl(QStringLiteral("qrc:/fookb.qml")));
/* Get the flag object */
QObject *rootObject = engine.rootObjects().first();
/* Install event filter to handle mapping change */
XcbEventFilter *eventFilter = new XcbEventFilter(rootObject);
app.installNativeEventFilter(eventFilter);
/* run application */
return app.exec();
}