mirror of
https://github.com/CURTLab/LVGLBuilder.git
synced 2025-05-08 19:40:36 +08:00
18 lines
352 B
C++
18 lines
352 B
C++
#include <QApplication>
|
|
|
|
#include "LVGLSimulator.h"
|
|
#include "MainWindow.h"
|
|
|
|
int main(int argc, char *argv[]) {
|
|
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
|
QApplication a(argc, argv);
|
|
|
|
MainWindow w;
|
|
LVGLKeyPressEventFilter filter(w.simulator(), &a);
|
|
a.installEventFilter(&filter);
|
|
|
|
w.showMaximized();
|
|
|
|
return a.exec();
|
|
}
|