-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
41 lines (29 loc) · 800 Bytes
/
main.cpp
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#include <QApplication>
#include <QtWidgets>
#include "argus.h"
int main(int argc, char* argv[])
{
QApplication app(argc, argv);
Argus argus;
argus.show();
/*QPushButton button;
QStateMachine machine;
QState *off = new QState();
off->assignProperty(&button, "text", "Off");
off->setObjectName("Off");
QState *on = new QState();
on->assignProperty(&button, "text", "On");
on->setObjectName("On");
off->addTransition(&button, SIGNAL(clicked()), on);
on->addTransition(&button, SIGNAL(clicked()), off);
machine.addState(off);
machine.addState(on);
machine.setInitialState(off);
machine.start();
button.resize(100, 50);
button.show();
QPushButton *toggleButton = new QPushButton("Toggle");
toggleButton->setCheckable(true);
toggleButton->show();*/
return app.exec();
}