update
This commit is contained in:
@@ -1,11 +1,17 @@
|
||||
#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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user