mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-10-07 09:47:07 +02:00
c5a9e06922
No now use the same folder for ScreenPlay and ScreenPlayWindow because I gave up on setting the dll dir for ScreenPlayWindow. This means we cannot have two C++ classes with the same name :(
30 lines
622 B
C++
30 lines
622 B
C++
#include "src/SPWmainwindow.h"
|
|
#include <QApplication>
|
|
#include <QStringList>
|
|
#include "qt_windows.h"
|
|
|
|
int main(int argc, char* argv[])
|
|
{
|
|
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
|
QApplication::setAttribute(Qt::AA_UseOpenGLES);
|
|
QApplication a(argc, argv);
|
|
|
|
QStringList argumentList = a.arguments();
|
|
|
|
if(argumentList.length() != 3) {
|
|
return -3;
|
|
}
|
|
|
|
bool ok = false;
|
|
int monitor = argumentList.at(1).toInt(&ok);
|
|
|
|
if (!ok) {
|
|
return -4;
|
|
}
|
|
|
|
MainWindow w(monitor,argumentList.at(2));
|
|
//MainWindow w(0,"D:/672870/827148653");
|
|
|
|
return a.exec();
|
|
}
|