#include #include #include #include "highlighter.h" int main(int argc, char *argv[]) { QGuiApplication app(argc, argv); QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling); Highlighter highl1; Highlighter highl2; QQmlApplicationEngine engine; engine.rootContext()->setContextProperty( "highlight1", &highl1); engine.rootContext()->setContextProperty( "highlight2", &highl2); engine.load(QUrl("qrc:main.qml")); return app.exec(); }