forked from RTMilliken/EDFbrowser
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.cpp
More file actions
38 lines (22 loc) · 636 Bytes
/
main.cpp
File metadata and controls
38 lines (22 loc) · 636 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
#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);
app.setAttribute(Qt::AA_ImmediateWidgetCreation);
QPixmap pixmap(":/images/splash.png");
QSplashScreen splash(pixmap, Qt::WindowStaysOnTopHint);
QTimer t1;
t1.setSingleShot(true);
QObject::connect(&t1, SIGNAL(timeout()), &splash, SLOT(close()));
splash.show();
t1.start(3000);
qApp->processEvents();
class UI_Mainwindow MainWindow;
return app.exec();
}