Answer the question
In order to leave comments, you need to log in
How to fix QImage: out of memory, returning null image error?
The essence of the program:
1. Downloads images from tape to VK, saves to a separate folder. Then the PyQT part.
2. For each photo in the folder: if the width of the photo is greater than X, then we reduce the photo to X (but the original is kept in the folder). The photo (processed) is inserted into the application window.
Suddenly this problem occurs:
QImage: out of memory, returning null image
createDIB: CreateDIBSection failed.
Answer the question
In order to leave comments, you need to log in
The problem turned out to be a large number of images in the application
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question