Need advice for Gwenview 2 image view

Aurélien Gâteau aurelien.gateau at free.fr
Sun Mar 25 00:45:56 GMT 2007


Boudewijn Rempt wrote:

> On Friday 23 March 2007, Aurélien Gâteau wrote:
> 
>> - Use QAbstractScrollArea, with a custom viewport widget. This would be
>> quite similar to the way it works in KDE3 version of Gwenview (in KDE3,
>> Gwenview paints directly on the scrollview viewport).
> 
> This is what we chose to do for KOffice, with quite good results. Using
> QScrollArea lead to performance problems, stuttering scrolling and so on.
> QGraphicsView doesn't have much scope to show what it can do when you only
> have one item in the view.

Thanks for your answer Boudewijn. I implemented a basic image view using
QAbstractScrollArea and it seems ok. I am still wondering if QGraphicsView
wouldn't be useful to select rects if I want to implement tools like crop
or red-eye removal. Any QGraphicsView wizard here?

Aurélien





More information about the kde-core-devel mailing list