DCLibraries/CArunGUI/main.cpp

44 lines
1.2 KiB
C++
Raw Normal View History

2023-11-08 13:02:26 +01:00
#include "mainwindow.h"
//#include "message_handler.h"
#include <QApplication>
int thisisglobal;
int main(int argc, char *argv[])
{
int ret;
QApplication myapp(argc, argv);
QApplication::setApplicationName("CArunGui");
QApplication::setApplicationVersion(APP_VERSION);
/*
if (!messageHandlerInstalled()) { // change internal qt-QDebug-handling
atbInstallMessageHandler(atbDebugOutput);
setDebugLevel(QtMsgType::QtDebugMsg);
//setDebugLevel(QtMsgType::QtDebugMsg);
}
*/
MainWindow myMainWin;
QSize myMainSize={800, 480}; // breite, höhe, PTU: 800x440
myMainWin.setMinimumSize(myMainSize);
myMainWin.setMaximumSize(myMainSize);
myMainWin.setWindowTitle("CArun_V4.2 run cash agent master lib");
myMainWin.show();
ret=myapp.exec();
return ret;
}
//QApplication a(argc, argv);
//MainWindow CatMW;
//QSize myMainSize={800, 480}; // breite, höhe
//CatMW.setMinimumSize(myMainSize);
//CatMW.setMaximumSize(myMainSize);
//CatMW.setWindowTitle("ATB CashAgent V2.0");
// QPalette mainPal;
// mainPal.setColor(QPalette::Window, Qt::red );
// CatMW.setPalette(mainPal); sieht man nicht mehr