Hello, I guess if you want to interact with internal buffers in QGraphicsView you will have to gain access to the thread that runs the Qt event loop some way. To do that in an external thread is difficult, if not impossible. Use of QTimer or QApplication.invokeLater()/invokeNow() is my best guess.
I would recommend you to ask this question at the qt-interest list, they will probably have some more insigth into the deeper foundations of the buffer scheduling inside the API. Regards, Helge Fredriksen On Fri, Oct 22, 2010 at 12:29 AM, Samu Voutilainen <[email protected]> wrote: > On Thursday 21 October 2010 13:19:14 naiqiao liang wrote: > > 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. > > > > PyQt questions should go to their own mailing list, not Qt Jambi one... > > -- > Terveisin, > Samu Voutilainen > http://smar.fi > _______________________________________________ > Qt-jambi-interest mailing list > [email protected] > http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest >
_______________________________________________ Qt-jambi-interest mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest
