I told you to subclass QAbstractScrollArea and implement the functionality from scratch, not to use a custom widget composed of a scroll area and a label. You will have to get your hands dirty here.
I told you to subclass QAbstractScrollArea and implement the functionality from scratch, not to use a custom widget composed of a scroll area and a label. You will have to get your hands dirty here.
OK, I looked but I don't understand what methods to reimplement and how to paint to the viewport.
OK, but how do I get a QPainter for the viewport widget?
Finally, I did it.
Anyway, it works great now, but I would really like it so that the user can scroll by dragging the mouse in the viewport. How would I do that?
You're gradually reinventing QGraphicsView here. Just use that; you get all of the features you've brought up so far for free.
Bookmarks