forked from RTMilliken/EDFbrowser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
42 lines (24 loc) · 657 Bytes
/
main.cpp
File metadata and controls
42 lines (24 loc) · 657 Bytes
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
#include <QApplication>
#include <QObject>
#include <QPixmap>
#include <QSplashScreen>
#include <QTimer>
#include "mainwindow.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
app.setAttribute(Qt::AA_DontUseNativeMenuBar);
QPixmap pixmap(":/images/splash.png");
QSplashScreen splash(pixmap, Qt::WindowStaysOnTopHint);
QTimer t1;
t1.setSingleShot(true);
#if QT_VERSION >= 0x050000
t1.setTimerType(Qt::PreciseTimer);
#endif
QObject::connect(&t1, SIGNAL(timeout()), &splash, SLOT(close()));
splash.show();
t1.start(3000);
qApp->processEvents();
class UI_Mainwindow MainWindow;
return app.exec();
}