-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
33 lines (26 loc) · 1.02 KB
/
main.cpp
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 "mainwindow.h"
#include <QApplication>
#include <QCommandLineParser>
#include <iostream>
#include <QSplashScreen>
#include <QTimer>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QCoreApplication::setOrganizationName("Christian Camilo Mesa.");
QCoreApplication::setOrganizationDomain("[email protected]");
QCoreApplication::setApplicationName(MY_APP_NAME " V" VERSION_OF_PDF_CONVERTER);
QCoreApplication::setApplicationVersion(VERSION_OF_PDF_CONVERTER);
QCommandLineParser parser; // ver ejemplo "Application Example"
parser.setApplicationDescription(QCoreApplication::applicationName());
parser.addHelpOption();
parser.addVersionOption();
parser.process(app);
MainWindow mainWin;
QSplashScreen splash(&mainWin, QPixmap(":/icons/App_Icon.png"));
splash.show();
QTimer::singleShot(1500, &splash, SLOT(close()));
QTimer::singleShot(500, &mainWin, SLOT(show()));
// mainWin.show(); // alternative to show the main window
return app.exec();
}