PDA

View Full Version : Should I use QCanvas+QCanvasView+QCanvasItems instead of QWidget ?



yellowmat
21st June 2006, 09:00
Hi everybody !

I need to developp (using Qt3) a graphic application which will manage several custom graphic objects I must developp.

It will be 2D graphics and custom widgets are quite simples (transparent texts, pixmaps, no animations). I also need to control the Z order to be sure to keep some graphic objects at the right z order.

I looked the Qt documentation and read that for 2D graphics QCanvas can be used, but also QWidget ... but I don't know which one to choose.

Could anyone help me to make the right choice ?

Thanks in advance.

e8johan
21st June 2006, 09:12
It sounds as if you're after a canvas, yes. Check out http://www.digitalfanatics.org/projects/qt_tutorial/chapter12.html for examples of what the Qt 3 canvas can be used for.