roulette-payout/MainWindow.cpp

18 lines
435 B
C++

#include <QQmlContext>
#include <QtGui/qwindow.h>
#include <qqml.h>
#include <qqmlapplicationengine.h>
#include <qquickview.h>
#include <qurl.h>
#include "MainWindow.h"
MainWindow::MainWindow(QWindow *parent)
{
/*
* MainWindow is a QQmlApplicationEngine, so a .show() isn't needed
* it will load a Window or ApplicationWindow that will set its own
* visibility status
*/
load(QUrl("qrc:///Root.qml"));
}