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.
22 lines
516 B
22 lines
516 B
#include <QGuiApplication>
|
|
#include <QQmlApplicationEngine>
|
|
#include <QQmlContext>
|
|
|
|
#include <bridge.h>
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
|
|
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
|
|
|
QGuiApplication app(argc, argv);
|
|
app.setOrganizationName("Sepanta");
|
|
app.setOrganizationDomain("Sepanta");
|
|
|
|
QQmlApplicationEngine engine;
|
|
Bridge *brdige = new Bridge;
|
|
engine.rootContext ()->setContextProperty ("cpp",brdige);
|
|
engine.load("qrc:/main.qml");
|
|
|
|
return app.exec();
|
|
}
|
|
|