-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
29 lines (24 loc) · 763 Bytes
/
main.cpp
File metadata and controls
29 lines (24 loc) · 763 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
#include <QApplication>
#include <QSplashScreen>
#include <QPixmap>
#include <QTimer>
#include "mainwindow.h"
int main(int argc, char *argv[]) {
QApplication app(argc, argv);
app.setApplicationName("Invoice Scanner");
app.setApplicationVersion("1.0");
app.setOrganizationName("Aether Solutions");
// Splash screen (optional — remove if you have no splash image)
QSplashScreen *splash = new QSplashScreen;
splash->showMessage("Loading Invoice Scanner...",
Qt::AlignBottom | Qt::AlignHCenter, Qt::white);
splash->show();
app.processEvents();
MainWindow w;
QTimer::singleShot(1200, [&](){
splash->finish(&w);
w.show();
delete splash;
});
return app.exec();
}