[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyKDE] PyQt4 subclass of QApplication
From:       Frode_Ĝijord <frodo () sim ! no>
Date:       2006-07-25 10:05:30
Message-ID: 44C5ECEA.5030808 () sim ! no
[Download RAW message or body]

Hi,
I am developing a Qt4 application that uses PyQt4 and Pivy, the python 
binding for Coin3D. I have subclassed QApplication and use QTimers to 
trigger event processing in Coin3D.

The CoinQt4App looks something like this.

class CoinQt4App(QApplication):
    def __init__(self, args):
        QApplication.__init__(self, args)

        self.idletimer = QTimer(self)
        self.timerqueuetimer = QTimer(self)
        self.delaytimeouttimer = QTimer(self)
       
        self.idletimer.setSingleShot(True)
        self.timerqueuetimer.setSingleShot(True)
        self.delaytimeouttimer.setSingleShot(True)
       
        self.connect(self.idletimer, SIGNAL("timeout()"), self.idle)
        self.connect(self.timerqueuetimer, SIGNAL("timeout()"), 
self.timeout)
        self.connect(self.delaytimeouttimer, SIGNAL("timeout()"), 
self.delaytimeout)

        
SoDB.getSensorManager().setChangedCallback(self.sensorQueueChanged, None)
        self.connect(self, SIGNAL("lastWindowClosed()"), self.quit)



The problem is, that when I shut down the application python hangs and 
spits out the message
"QObject::killTimer: timers cannot be stopped from another thread"

I'm no guru on threading so I'm kind of lost here... Any ideas?

Frode

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic