mirror of
https://github.com/YACReader/yacreader
synced 2025-07-17 20:44:32 -04:00
Remove image allocation limit
This commit fixes this error: QImageIOHandler: Rejecting image as it exceeds the current allocation limit of 128 megabytes
This commit is contained in:
@ -11,6 +11,7 @@
|
||||
#include <QLibrary>
|
||||
#endif
|
||||
#include <QCommandLineParser>
|
||||
#include <QImageReader>
|
||||
|
||||
#include "yacreader_global.h"
|
||||
#include "yacreader_http_server.h"
|
||||
@ -130,6 +131,8 @@ int main(int argc, char **argv)
|
||||
QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
|
||||
QApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
|
||||
|
||||
QImageReader::setAllocationLimit(0);
|
||||
|
||||
QApplication app(argc, argv);
|
||||
|
||||
#ifdef FORCE_ANGLE
|
||||
|
Reference in New Issue
Block a user