[Qt-interest] QGraphicsScene - OpenGL glBegin/glEnd
fungos
fungos at gmail.com
Tue Apr 14 03:15:08 CEST 2009
Thanks Karol, I don't think that these are what I want but I will check it.
My problem is that I don't use QGLWidget, but I use the combo
QGraphicsView/QGraphicsScene.
I'm trying to read Qt opengl sources to find something.
There must be something really wrong here.
On Mon, Apr 13, 2009 at 1:39 AM, Karol Krizka <kkrizka at gmail.com> wrote:
> On Sun, Apr 12, 2009 at 7:11 PM, fungos <fungos at gmail.com> wrote:
>> I think I hit a difficult question there.
>> Can somebody just point me where Qt initializes OpenGL? And where it
>> does the "update" of the context?
>>
> Are these two functions what you are looking for?
> http://doc.trolltech.com/4.5/qglwidget.html#initializeGL
> http://doc.trolltech.com/4.5/qglwidget.html#paintGL
>
> --
> Cheers,
> Karol Krizka
> http://www.krizka.net
>
>
>> On Sat, Apr 11, 2009 at 6:14 PM, fungos <fungos at gmail.com> wrote:
>>> Hi, anybody can explain me how OpenGL QGraphicsScene works with
>>> glBegin/glEnd (when they happen)?
>>>
>>> My problem is: QMainWindow has a QWidget that is QGraphicsScene, but
>>> then at initialization after all Qt code initialization, I have
>>> another class that is a Renderer and its initialization calls
>>> glGetString that returns an error: GL_INVALID_OPERATION is generated
>>> if glGetString is executed between the execution of glBegin and the
>>> corresponding execution of glEnd.
>>>
>>> As I'm integrating a graphics engine inside a Qt window, how can I
>>> handle these kind of issues without messing too much with the graphics
>>> engine?
>>>
>>> --
>>> Animal Frontline Liberation
>>>
>>
>>
>>
>> --
>> Animal Frontline Liberation
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>
>
--
Animal Frontline Liberation
More information about the Qt-interest-old
mailing list