Qt-interest Archive, March 2002
openGL without QGLWidget
Message 1 in thread
Hello,
I am trying to use openGL with a QDialog on Windows 2000 with Qt Professional 3.0.2. It compiles but I do not have any output. Did anyone tried to use openGL without using QGLWidget ?
Any help would be appreciated.
Daniel Duclos danduclos@sympatico.ca
Message 2 in thread
Hello,
I mend by output that I do not see any graphic on the widget. I put a message
box in my drawing function and then I saw the graphic. Without it, I do not see
anything.
Anyone have an idea?
Daniel Duclos
Olivier RIFFAUD a écrit:
> What you mean by output ?
> If you want a consol for see cout or cerr, insert _CONSOLE in ce settings
> of your project in the C++ tab in preprocesseur definition
> ----- Original Message -----
> From: <danduclos@sympatico.ca>
> To: <qt-interest@trolltech.com>
> Sent: Thursday, March 21, 2002 8:10 PM
> Subject: openGL without QGLWidget
>
> > Hello,
> >
> > I am trying to use openGL with a QDialog on Windows 2000 with Qt
> Professional 3.0.2. It compiles but I do not have any output. Did anyone
> tried to use openGL without using QGLWidget ?
> >
> > Any help would be appreciated.
> >
> > Daniel Duclos danduclos@sympatico.ca
> >
> > --
> > List archive and information: http://qt-interest.trolltech.com
> >
Message 3 in thread
you have to do updateGL() i guess
Pareekh
----- Original Message -----
From: "Daniel Duclos" <danduclos@sympatico.ca>
To: "Olivier RIFFAUD" <oriffaud@ifremer.fr>
Cc: <qt-interest@trolltech.com>
Sent: Tuesday, March 26, 2002 11:16 AM
Subject: Re: openGL without QGLWidget
> Hello,
>
> I mend by output that I do not see any graphic on the widget. I put a
message
> box in my drawing function and then I saw the graphic. Without it, I do
not see
> anything.
>
> Anyone have an idea?
>
> Daniel Duclos
>
>
> Olivier RIFFAUD a écrit:
>
> > What you mean by output ?
> > If you want a consol for see cout or cerr, insert _CONSOLE in ce
settings
> > of your project in the C++ tab in preprocesseur definition
> > ----- Original Message -----
> > From: <danduclos@sympatico.ca>
> > To: <qt-interest@trolltech.com>
> > Sent: Thursday, March 21, 2002 8:10 PM
> > Subject: openGL without QGLWidget
> >
> > > Hello,
> > >
> > > I am trying to use openGL with a QDialog on Windows 2000 with Qt
> > Professional 3.0.2. It compiles but I do not have any output. Did anyone
> > tried to use openGL without using QGLWidget ?
> > >
> > > Any help would be appreciated.
> > >
> > > Daniel Duclos danduclos@sympatico.ca
> > >
> > > --
> > > List archive and information: http://qt-interest.trolltech.com
> > >
>
> --
> List archive and information: http://qt-interest.trolltech.com
Message 4 in thread
Hello,
That is right. I forgot to add the function SwapBuffers(hdc). Now, It works
well.
Thank you
Daniel Duclos
Pareekh Jain a écrit:
> you have to do updateGL() i guess
>
> Pareekh
> ----- Original Message -----
> From: "Daniel Duclos" <danduclos@sympatico.ca>
> To: "Olivier RIFFAUD" <oriffaud@ifremer.fr>
> Cc: <qt-interest@trolltech.com>
> Sent: Tuesday, March 26, 2002 11:16 AM
> Subject: Re: openGL without QGLWidget
>
> > Hello,
> >
> > I mend by output that I do not see any graphic on the widget. I put a
> message
> > box in my drawing function and then I saw the graphic. Without it, I do
> not see
> > anything.
> >
> > Anyone have an idea?
> >
> > Daniel Duclos
> >
> >
> > Olivier RIFFAUD a écrit:
> >
> > > What you mean by output ?
> > > If you want a consol for see cout or cerr, insert _CONSOLE in ce
> settings
> > > of your project in the C++ tab in preprocesseur definition
> > > ----- Original Message -----
> > > From: <danduclos@sympatico.ca>
> > > To: <qt-interest@trolltech.com>
> > > Sent: Thursday, March 21, 2002 8:10 PM
> > > Subject: openGL without QGLWidget
> > >
> > > > Hello,
> > > >
> > > > I am trying to use openGL with a QDialog on Windows 2000 with Qt
> > > Professional 3.0.2. It compiles but I do not have any output. Did anyone
> > > tried to use openGL without using QGLWidget ?
> > > >
> > > > Any help would be appreciated.
> > > >
> > > > Daniel Duclos danduclos@sympatico.ca
> > > >
> > > > --
> > > > List archive and information: http://qt-interest.trolltech.com
> > > >
> >
> > --
> > List archive and information: http://qt-interest.trolltech.com
Message 5 in thread
Hello,
I have a window class derived from QDialog and I use the WGL API to create and make current the openGL context. It compiles but when I run it, I do not see anything.
Did someone was able to use openGL without QGLWidget?
Thank you
Daniel Duclos danduclos@sympatico.ca
>
> Date: 2002/03/21 Thu PM 02:49:52 EST
>
>
> You will have to have a window to draw thing to. Where
> you get the window from is up to you. You can get it
> from GLUT, you can make your own widget derived from
> QWidget, or whatever other way you can get a window.
> The difficulty is making that window work with you QT
> application. The QGLWidget is the simplest way. But you
> aren't prevented from doing it another way.
>
> There have been others trying to integrate GLUT with QT.
> You may want to get with them and get more information
> about that.
>
> Clint