I'm using Qpainter to draw on a QWidget.
So, I have a QscrollArea about 1000 x 600 and a QPixmap inside. I would like to draw some segments (about 2000 lines) with QPainter on it. The QPixmap is very wide (about 150000)so I would like to do some optimization.
I have to do a lot of repaint for the pixmap. Inside of drawing the whole pixmap, I want to draw the part in the QscrollArea. I think that I can do it with controlling manually the horizontal scroll bar. But I wonder if there is some other Qt class can do the job for me? Maybe the QGraphicsView and QGrahpicsScene?