Answer the question
In order to leave comments, you need to log in
Building and displaying a large image in Qt
My program builds an image with complex rules and then displays it in a QScrollArea. Now I do it like this:
Answer the question
In order to leave comments, you need to log in
Qt itself, as far as I understand, assumes that you will not draw a widget in QScrollArea, but inherit it from QAbstractScrollArea.
Regarding the display, there are 2 options:
1. Calculate on the go, it is very desirable with a video card. In this case, you do not need to store anything and there will be no problems with scrolling.
2. Calculate the image, break it into several segments (for example, 10,000 x 10,000 pixels). When rendering, load 1-4 necessary fragments and actually draw them.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question