Add a really huge widget to a QScrollArea
-
I'm trying to implement a hex viewer using QT. I wrote a custom control, extending the class QWidget, without scrolling support, and embedded it into a QScrollArea. When my control displays a small file, everything goes just fine including scrolling. If i try to open a file 3GB big, it still displays the control, but the scrollbars do not appear. Do anyone have any tips for this problem?
Thanks.
-
There are maximum sizes you can use for windows and widgets. You seem to be bouncing into them.
I think you need to start to think about a way to render only the part of the view you actually need. Instead of sizing your widget to span the whole file, create a widget that only draws the part of the file that is currently in the viewport.