-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain_jeu.cpp
More file actions
58 lines (32 loc) · 1.04 KB
/
main_jeu.cpp
File metadata and controls
58 lines (32 loc) · 1.04 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#include <QApplication>
#include "jeu.h"
int main(int argc, char *argv[]){
QApplication a(argc, argv);
Jeu w;
w.show();
w.showFullScreen();
srand(time(NULL));
return a.exec();
}
// QApplication app(argc, argv);
// QWidget fenetre;
// fenetre.setFixedSize(400, 200);
// QPushButton bouton1("YOLO", &fenetre);
// bouton1.setText("Boutton 1 ");
// bouton1.setToolTip("Texte d'aide");
// bouton1.setFont(QFont("Comic Sans MS", 20, QFont::Bold, true));
// bouton1.move(60, 50);
// //bouton1.setGeometry(50, 50, 20, 20);
// QPushButton bouton2("YOLO", &fenetre);
// bouton2.setText("Quitter ");
// bouton2.setToolTip("Texte d'aide");
// bouton2.setFont(QFont("Comic Sans MS", 20, QFont::Bold, true));
// bouton2.move(100,100);
// QObject::connect(&bouton2, SIGNAL(clicked()), qApp, SLOT(quit()));
// QLCDNumber m_lcd(&fenetre);
// m_lcd.setSegmentStyle(QLCDNumber::Flat);
// fenetre.show();
// bouton1.show();
// bouton2.show();
// return app.exec();
// }