[Kde-games-devel] Thanks for the tips about Qcanvas

Philippe FREMY kde-games-devel@mail.kde.org
Mon, 15 Apr 2002 13:16:16 +0200


> > I need such a huge background because it's a big scanned map that i must
> > show and i just want to
> > add some information on top of it. Like a Geographical Information
> > System application.
> 
> I think you don't need QCanvas if you don't have animated or moving
objects 
> to paint. You can paint directly onto any wigdet with QPainter.

Yes it is possible. Also for only a big background, a qscrollview (which
qcanvas inherits) is better than raw qpainter.

> Are there any advantages for static grafics?

He says he wants to put some geographical information on top of the map. I
think it is easier to handle this with a Canvas and sprites. You don't care
about the painting, you get almost automatic transparency, you can easily
place your sprites, you could even animate them if you want some fun. This
is a lot easier than dealing with paint events on widgets.

	regards,

	Philippe