20 lines
533 B
C++
20 lines
533 B
C++
#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();
|
||
}
|