On 2010-11-19 Doug Bell <[email protected]> said:

> Hi,
> 
> When exiting my PyQt application, I get the following error message:
> 
>   QObject::startTimer: QTimer can only be used with threads started with
>   QThread
> 
> The strange thing is that my application is single-threaded and doesn't
> contain any QTimers.
> 
> The error seems to be related to garbage collection at application exit.
> It started showing up when I added a reference between two objects that
> were already referenced in the other direction (becoming similar to a
> doubly-linked list).
> 
> I tried to create a small example showing the problem, but I was unable
> to reproduce the issue in a simpler program, even after duplicating much
> of the basic structure.
> 

Hi,

same issue here. I've fixed it by setting the QtCore.Qt.WA_DeleteOnClose 
attribute on the main window of my program.

Hope it helps,

Vicent

::

        Share what you know, learn what you don't

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to