[PyQt] Garbage collection issue?

Vicent Mas uvemas at gmail.com
Sat Nov 20 16:04:12 GMT 2010

On 2010-11-19 Doug Bell <dougb at bellz.org> 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.


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,



	Share what you know, learn what you don't

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20101120/ed3153cb/attachment.pgp>

More information about the PyQt mailing list