- Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.cpp
More file actions
Latest commit
21 lines (16 loc) · 448 Bytes
/
Copy pathmain.cpp
File metadata and controls
21 lines (16 loc) · 448 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include<QApplication>
#include<time.h>
#include"ui.h"
intmain(int argc, char *argv[])
{
QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8"));
QResource::registerResource("resources.qrc");
srand(time(NULL));
QApplication a(argc, argv);
QTranslator myTranslator;
myTranslator.load("bb-" + QLocale::system().name());
a.installTranslator(&myTranslator);
UI w;
w.show();
return a.exec();
}