[Qt-interest] swapBuffers() Externally
naiqiao liang
liangnaiqiao at gmail.com
Tue Oct 26 19:59:36 CEST 2010
Hello,
I am a beginner in PyQt. My first task is to build a QGraphicsView and apply
a QGLWidget to control its viewport.
The problem is that I want to update the buffers externally, which is to
say, setAutoBufferSwap(False) ahead. And each time when the view is changed,
the buffer is swapped under my own control.
I have tried many different ways, but none worked. Timer and EventLoops are
not desired, since I want to control the time precisely, not affected by
other events, such as mouse or keyboard.
I guess the painter to the QGLWidget is destructed before the swapBuffers()
is called. But I don't know where it occurs and how to set it externally.
Any help or suggestion will be appreciated. Thanks ahead.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101026/715e1c31/attachment.html
More information about the Qt-interest-old
mailing list