-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
31 lines (26 loc) · 1.24 KB
/
main.cpp
File metadata and controls
31 lines (26 loc) · 1.24 KB
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
#include "mainwindow.h"
#include <QApplication>
#include <iostream>
#include <string>
#include "GlobalVariables.h"
int main(int argc, char *argv[])
{
std::cout<<"main ENTERING "<<std::endl;
QApplication a(argc, argv);
// std::cout<<"include relative path to Qt_dlls folder START"<<std::endl;
// QString pathToExe = QCoreApplication::applicationFilePath();
// QString nameOfExe = QFileInfo( QCoreApplication::applicationFilePath() ).fileName();
// std::string strPathToQtDlls = pathToExe.toStdString();
// strPathToQtDlls = strPathToQtDlls.erase(pathToExe.length()-nameOfExe.length(),pathToExe.length());
// strPathToQtDlls = strPathToQtDlls+"Qt_dlls/";
// std::cout<<strPathToQtDlls<<std::endl;
// QCoreApplication::addLibraryPath(QString::fromUtf8(strPathToQtDlls.c_str()));
// std::cout<<"include relative path to Qt_dlls folder DONE"<<std::endl;
MainWindow w;
w.show();
std::cout<<"main LEAVING"<<std::endl;
std::cout<<"#################################################################"<<std::endl;
std::cout<<"# SETUP DONE, WAITING FOR USER ACTION #"<<std::endl;
std::cout<<"#################################################################"<<std::endl;
return a.exec();
}