Files
hfut-bishe/client/gui/app/main.cpp
2026-04-09 23:13:33 +08:00

20 lines
533 B
C++
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#include "main_window/MainWindow.h"
#include <QApplication>
#include <QImageReader>
int main(int argc, char* argv[]) {
QApplication app(argc, argv);
app.setApplicationName(QStringLiteral("landscape tool"));
// 全局放宽 Qt 图片分配限制(默认常见为 256MB否则超大分辨率背景/深度可能在任意加载路径被拒绝。
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
QImageReader::setAllocationLimit(1024); // MB
#endif
MainWindow window;
window.show();
return app.exec();
}