APservice/main.cpp

44 lines
1.1 KiB
C++
Raw Normal View History

2023-11-14 09:32:56 +01:00
#include "mainwindow.h"
//#include "message_handler.h"
#include <QApplication>
2024-07-08 11:45:01 +02:00
#include "version.h"
2023-11-14 09:32:56 +01:00
int thisisglobal;
int main(int argc, char *argv[])
{
int ret;
QApplication myapp(argc, argv);
/*
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);
2024-07-08 10:34:47 +02:00
myMainWin.setWindowTitle("PSA Service Tool V4.3");
2023-11-14 09:32:56 +01:00
myMainWin.show();
//myMainWin.showFullScreen();
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