[PyQt] QGraphicsScene issue

Phil Thompson phil at riverbankcomputing.co.uk
Sat Aug 11 18:38:07 BST 2007


On Saturday 11 August 2007 2:20 am, Jason H wrote:
> I started using Qt 4.3.1 and PyQt 4.3. When I added the QGraphicsScene, I
> got the error: QObject::startTimer: timers cannot be started from another
> thread
> With out me actually using any timers.
>
> Then I wrote the script below (Change sups.jpg) to another file you have on
> your system. Everytime it renders the scene, the
> QObject::startTimer: timers cannot be started from another thread
> message appears, and floods the console.
>
> After a few moments of running, python crashes It typically rotates 3 or 4
> times before crashing.
>
> I am wondering what I am doing wrong?

You can't do GUI related stuff in anything other than the main thread.

Phil


More information about the PyQt mailing list