[Qt-interest] OpenGL with Qt _ Need_Help

Sujan Dasmahapatra sujan.dasmahapatra at gmail.com
Mon Aug 10 16:37:34 CEST 2009


Thank a lot Alex for the help. I'll full utilize the vital informations you
gave. We may discuss about if any  problems I face in working with openGL.
Thanks a lot.

Sujan

On Mon, Aug 10, 2009 at 5:26 PM, Alexandre Beraud <aberaud at infflux.com>wrote:

> Dear Sujan,
>
> The QGLWidget class is a widget for rendering OpenGL graphics.
>
> QGLWidget provides functionality for displaying OpenGL graphics
> integrated into a Qt application. It is very simple to use. You inherit
> from it and use the subclass like any other QWidget, except that you
> have the choice between using QPainter and standard OpenGL rendering
> commands.
>
> QGLWidget provides three convenient virtual functions that you can
> reimplement in your subclass to perform the typical OpenGL tasks:
>
> paintGL() - Renders the OpenGL scene. Gets called whenever the widget
> needs to be updated.
> resizeGL() - Sets up the OpenGL viewport, projection, etc. Gets called
> whenever the widget has been resized (and also when it is shown for the
> first time because all newly created widgets get a resize event
> automatically).
> initializeGL() - Sets up the OpenGL rendering context, defines display
> lists, etc. Gets called once before the first time resizeGL() or
> paintGL() is called.
> Here is a rough outline of how a QGLWidget subclass might look:
> ...
>
> Wait... That's what you could read if you just took a look at the
> following documentation, available immediately on the Qt Reference
> Documentation Page (the one you should bookmark one day):
> http://doc.trolltech.com/4.5/qtopengl.html
>
> I hope it helps.
>
> Regards,
>
> Alex
>
>
>
> Sujan Dasmahapatra a écrit :
>  > Dear Friends
> > I want to create some graphicsItems in openGL and want to use them in
> > my Qt Application.Can I do that.
> > I know that Qt has openGL but all the openGL features are  availabke
> > in Qt ??
> > What kind of binding do I need to create to start openGL in Qt
> > framework. ?
> >  Please help me someone.
> >
> > --
> > Thanks & Regards
> > S. Dasmahapatra
> > Ph:91-9900839788
> > Office:91-80-66470248
> > mail id : sujan.dasmahapatra at gmail.com
> > <mailto:sujan.dasmahapatra at gmail.com>
> >             sdh at lmglasfiber.com <mailto:sdh at lmglasfiber.com>
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Qt-interest mailing list
> > Qt-interest at trolltech.com
> > http://lists.trolltech.com/mailman/listinfo/qt-interest
> >
>
>
> --
> Alexandre BERAUD
> Ingénieur Développement
>
> Infflux - Informatique & Flux
> Tel: 01 49 57 92 00 - Fax : 01 49 57 92 01
> Mail: aberaud at infflux.com
> Visitez notre site :  www.infflux.com
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>



-- 
Thanks & Regards
S. Dasmahapatra
B.E. (Aeronautics-Aerodynamics)
Senior Engineer---CFD(Computational Fluid Dynamics)
L M Glasfiber R & D (India) Pvt Ltd
Bangalore, India
Ph:91-9900839788
Office:91-80-66470248
mail id : sujan.dasmahapatra at gmail.com
            sdh at lmglasfiber.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090810/ac18cb97/attachment.html 


More information about the Qt-interest-old mailing list