There are many classes that can be a "QImageView", e.g. QLabel, QPixmapItem in a QGraphicsView, any custom widget using QPainter, etc.
Why, which of the model/view features do you need?
Just some ideas:
- you seem to allocate a new image every time
- you are using two nested loops instead of scanline() or bits() for direct data access
- if you use the same value for red/green/blue, isn't that a grayscale image? In which case an image with a color table might be faster
Cheers,
_
Bookmarks