Ok, I understand. But this solution will cause a lot of flickering when I move the scroll bars. It' wouldn't be more simple just inserting the image as the background of the QScrollArea with setPalette?
Ok, I understand. But this solution will cause a lot of flickering when I move the scroll bars. It' wouldn't be more simple just inserting the image as the background of the QScrollArea with setPalette?
It will not cause a lot of flickering if done right, e.g. using double buffering
It's nice to be important but it's more important to be nice.
Yes you are right. But I will be very grateful if you can give me some more details of how to do this double buffering (I haven't much practice working with images...)
If you are using Qt4, you're fine: Just draw the pixmap using QPainter::drawPixmap. If you use Qt3, first draw in a QPixmap and then bitBlt the QPixmap to the screen.
I think Johan's pixmap view provides source that could be helpfull:
http://www.digitalfanatics.org/e8joh...ies/index.html
It's nice to be important but it's more important to be nice.
Ok thanks again
Bookmarks