1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-09-18 08:22:33 +02:00
ScreenPlay/ScreenPlayWidget/SPWidgetmain.cpp

26 lines
587 B
C++
Raw Normal View History

2018-03-08 22:03:05 +01:00
#include <QGuiApplication>
#include <QQmlApplicationEngine>
2018-03-21 18:56:58 +01:00
#include <QStringList>
2018-03-08 22:03:05 +01:00
2018-03-21 18:56:58 +01:00
#include "src/spwidgetmainwindow.h"
int main(int argc, char* argv[])
2018-03-08 22:03:05 +01:00
{
2018-03-21 18:56:58 +01:00
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QGuiApplication::setAttribute(Qt::AA_UseOpenGLES);
2018-03-08 22:03:05 +01:00
QGuiApplication app(argc, argv);
2018-03-23 14:49:52 +01:00
2018-03-21 18:56:58 +01:00
QStringList argumentList = app.arguments();
if (argumentList.length() != 3) {
return -3;
}
SPWidgetmainwindow spwmw(argumentList.at(1), argumentList.at(2));
2018-03-23 14:49:52 +01:00
//SPWidgetmainwindow spwmw("D:/672870/xkcd","asasasasd" );
2018-03-08 22:03:05 +01:00
return app.exec();
}