PDA

View Full Version : opengl help!!



rachana
19th February 2007, 08:36
hi all,

I have implemented basic shapes using QGraphicsItem ,using normal painting. I want to
achieve the same using opengl & I will have an option in the menu for opengl. If the
user selects that option I want to redraw all the QGraphicItems using opengl. Is it possible? Can some body explain ?

Thanks in advance,
Rachana

wysota
19th February 2007, 08:52
Yes, it's possible. Set the viewport for your graphics view as QGLWidget. Take a look at the chips demo that comes with Qt, it does exactly that.