I'm trying to create a QImage, which I will edit with setPixel and convert to a QPixmap. The problem is QImage's constructor seems to fail when I specify large dimensions. In my case, I need a QImage which is around 40,000 x 40,000. If I try to construct using new and check the object, it's null.
Is this a limitation of the class, or just something related to the available system resources? More importantly, is there any way to override this?
If not, I need another way to draw to a very large background device context which I can then render to the screen.
I should mention that if I lower the size to 20,000 x 20,000 it's ok, and I notice the amount of memory usage is very little (a few megeabytes) so why one that's 4 times the size be such a problem?
Bookmarks