1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-07 03:22:33 +01:00
ScreenPlay/main.cpp
2017-03-26 13:12:32 +02:00

27 lines
544 B
C++

#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <qt_windows.h>
#include <QWindow>
#include <QQuickView>
#include <QLibrary>
#include "screenplay.h"
#include "steam_api.h"
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
if(!SteamAPI_Init()){
qFatal("Could not init Steam sdk!");
}
QQmlApplicationEngine mainWindow(QUrl(QStringLiteral("qrc:/qml/mainWindow.qml")));
ScreenPlay sp(GetSystemMetrics(SM_CXSCREEN),GetSystemMetrics(SM_CYSCREEN));
return app.exec();
}