-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
50 lines (40 loc) · 1.09 KB
/
main.cpp
File metadata and controls
50 lines (40 loc) · 1.09 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
///////////////////////////////////////////////////
//
// Hamish Carr
// January, 2018
//
// ------------------------
// main.cpp
// ------------------------
//
///////////////////////////////////////////////////
#include <QtWidgets/QApplication>
#include "SceneModel.h"
#include "AnimationCycleWidget.h"
#include <iostream>
#include <string>
int main(int argc, char **argv)
{ // main()
// initialize QT
QApplication app(argc, argv);
// create a window
try
{ // try block
// we want a single instance of the scene model
SceneModel theScene;
// create the widget with no parent
AnimationCycleWidget animationWindow(NULL, &theScene);
// set the initial size
animationWindow.resize(1280, 720);
// show the window
animationWindow.show();
// set QT running
return app.exec();
} // try block
catch (std::string errorString)
{ // catch block
std::cout << "Unable to run application." << errorString << std::endl;
} // catch block
// paranoid return value
exit(0);
} // main()