2025-07-24 04:08:36 +08:00
|
|
|
#include <QApplication>
|
|
|
|
|
|
2025-07-24 04:36:59 +08:00
|
|
|
#include <QDebug>
|
|
|
|
|
|
2025-07-24 04:08:36 +08:00
|
|
|
#include "Ui/widget.h"
|
|
|
|
|
#include "CUiManager.h"
|
|
|
|
|
|
|
|
|
|
using namespace NS_QGobangClient;
|
|
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
|
{
|
|
|
|
|
QApplication a(argc, argv);
|
|
|
|
|
|
2025-07-24 04:36:59 +08:00
|
|
|
// 单例设计模式下, 引用比较过长, 长远的来看, 利大于弊
|
2025-07-24 04:08:36 +08:00
|
|
|
Widget *w = CUiManager::getInstance()->getWidget();
|
|
|
|
|
w->show();
|
|
|
|
|
|
|
|
|
|
return a.exec();
|
|
|
|
|
}
|