[PyKDE] Deleting canvas objects without stopping canvas advance.

Miller, Douglas dmiller at JFTI.com
Wed Jun 11 16:18:01 BST 2003


I discovered that my problem of using threads and the setCanvas method
discribed below was due to the main thread calling canvas advance while I
was trying to delete in the child thread.  Is there away around disabling
the advance during setCanvas(None)?  I would prefer that animation not be
interrupted. 

-----Original Message-----
From: Miller, Douglas
To: 'pykde at mats.imk.fraunhofer.de'
Sent: 6/10/03 2:37 PM
Subject: Thread Problem with setCanvas method

No matter whether I use the Python API or the Qt API for threading, I
get
an error when calling methed setCanvas(None) from a thread other than
the main. The error is: 'pure virtual method called'.  Then the script
aborts.
I use setCanvas(None) because it is the only way to make canvas objects
destruct.

I'm using Qt 3.0.3, PyQt/SIP 3.4.

Thanks for any help!




More information about the PyQt mailing list