blob: 4b5c978717cb25fa3459e9bd53bfebce431b8456 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#include <QApplication>
#include <QFileInfo>
#include "ui_blackjack.h"
#include <QDebug>
#include <QMessageBox>
#include <QUrl>
#include <QScriptEngine>
#include "qscxml.h"
#include "time.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
srand(clock());
QScxml *sm = QScxml::load(":/blackjack.scxml");
QObject::connect (sm, SIGNAL(finished()), &a, SLOT(quit()));
QMessageBox b;
QWidget* wdg = new QWidget();
Ui::gameWidget gw;
gw.setupUi(wdg);
sm->registerObject(wdg,"gameWidget",true);
wdg->show();
sm->start();
return a.exec();
}
|