qt_demoe/ui/uidemo08/main.cpp

20 lines
335 B
C++
Raw Permalink Normal View History

2021-11-17 07:33:19 +00:00
#include "frmmain.h"
#include "appinit.h"
2024-03-08 02:41:45 +00:00
#include "qthelper.h"
2021-11-17 07:33:19 +00:00
int main(int argc, char *argv[])
{
2024-03-08 02:41:45 +00:00
QtHelper::initMain();
2021-11-17 07:33:19 +00:00
QApplication a(argc, argv);
AppInit::Instance()->start();
2024-03-08 02:41:45 +00:00
QtHelper::setFont();
QtHelper::setCode();
2021-11-17 07:33:19 +00:00
frmMain w;
2024-03-08 02:41:45 +00:00
QtHelper::setFormInCenter(&w);
2021-11-17 07:33:19 +00:00
w.show();
return a.exec();
}