-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.cpp
More file actions
34 lines (31 loc) · 723 Bytes
/
main.cpp
File metadata and controls
34 lines (31 loc) · 723 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
/**
* @file main.cpp
* @author Anil Kumar
* @date 15May2021
* @brief This is main class.
*/
#include "SerialCOM.h"
#include <QApplication>
#include <QCommandLineParser>
#include <QTextCodec>
/**
* @brief main
* @param argc
* @param argv
* @return
*/
int main(int argc, char *argv[])
{
QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8"));
QApplication app(argc, argv);
app.setApplicationName(STR_PRODUCTNAME);
app.setApplicationVersion(STR_SOFTWARE_VERSION);
QCommandLineParser parser;
parser.addVersionOption();
parser.setApplicationDescription(STR_FILEDESCRIPTION);
parser.process(app);
SerialCOM w;
w.show();
// w.showFullScreen();
return app.exec();
}