[Qt-interest] Fwd: sphere with qt opengl

Alessandro Portale alessandro.portale at nokia.com
Wed Sep 1 14:57:25 CEST 2010


On 9/1/2010 2:48 PM, ext Ali A wrote:
> ---------- Forwarded message ----------
> From: *Ali A* <alimooghashang at gmail.com <mailto:alimooghashang at gmail.com>>
> Subject: sphere with qt opengl

> i want to draw a sphere with opengl!

I suggest using Qt for that. It has an OpenGL module.

> could you please help me how to do that?

There is a documented example of an Qt/OpenGL application that rotates a 
Qt Logo. You would need to modify it to rotate a sphere:
    http://doc.qt.nokia.com/4.6/opengl-hellogl.html

> and also i want to move it with a progressbar!

The mentioned example uses sliders. If you like, You can change the 
widgets of the example to progress bars. But please keep in mind that 
the progress bar in Qt does not handle mouse events.

Hope that helps,
Alessandro



More information about the Qt-interest-old mailing list