Files
CodeRepository/App_ThermalImageSystem/Guide/App_UVS12035A/GeneralThermalImageSystem/main.cpp

22 lines
428 B
C++
Raw Normal View History

#include "mainwindow.h"
#include <QApplication>
#include "LogIn/LoginDialog.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
LoginDialog dlg;
if (dlg.exec() ==QDialog::Accepted)
{
MainWindow w;
w.move((a.desktop()->width() - w.width()) / 2, (a.desktop()->height() - w.height()) / 2);
w.show();
return a.exec();
}
else
{
return 0;
}
}