My program creates an image using complicated rules, then displays it in QScrollArea. Currently I do it this way:
- create QImage
- fill it using QImage::setPixel
- add my widget (derived from QWidget) into QScrollArea
- define paintEvent in widget and use QPainter::drawImage
Is it simpliest way to display generated image?
Now I have a problem. The image can be very large. QImage stores data in memory and can't store big images. I want to store generated image on disk and draw any part of it with any zoom fastly. How can I do this?