-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
75 lines (54 loc) · 1.3 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#include"game.h"
#include"login.h"
#include<QApplication>
#include<QSplashScreen>
#include<QTime>
#include<QMainWindow>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
//Set image icon
a.setWindowIcon(QIcon(":/images/Images/captain.png"));
//Set Splash Screen
QSplashScreen *splash = new QSplashScreen;
splash->setPixmap(QPixmap(":/images/Images/captain.png"));
splash->show();
Login *log = new Login();
log->show();
QTimer::singleShot(3000,splash,SLOT(close()));//Splash screen close
QTimer::singleShot(3000,log,SLOT(show()));//After the Menubar class will run
return a.exec();
}
/*
* basic knoledge about c++ (points and memorny management)
* topics
* -QGraphicscene
* -QgraphicItem
* -QGraphocItem(QGraphic rectitem)
* -QGraphicView
* -events(QPress&QKeyEvent)
* -Eevnt Propogration System
* -Qdebug
03.
-QTImer
-SIgnals and slots(conncet function)
-Qobject and Qobject macro
04.
-QgraphicsScenr's secncerect
-Qgraphicview's senceRect
QgraphicsSence's senceRect
QgraphicsView codrdinate vs QgraphicsSence cordinates vs QgraphicItem cordinates
05.
-colldingItems()
-Qtimer and coodinate System
06.
-parents
-QgraphicsTextIterm, setplains
07.
-resource files
QmediaPlayer, setmedia(),Qurl,play()
08.
-QGRaphicsmapItem
-QPixmap
-Qimage
*/