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

List:       pykde
Subject:    [PyQt] simpletreemodel example still throwing an error on exit
From:       Brian Knudson <briank () pipelinefx ! com>
Date:       2012-08-13 15:44:07
Message-ID: 8AFE9947-2EFD-4F70-8E72-EFB57197F197 () pipelinefx ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hello,

  From the mail archives in March 2010, I see that simpletreemodel was throwing an \
error on exit.  Phil responded saying that things were being destroyed in the wrong \
order on exit & that there would be a fix put into that night's snapshot.  I don't \
believe the change ever made it into the source tree, as it still exhibits this \
behavior.  

  How can this example be fixed?  I'm seeing the same error in my code (which is \
based largely off simpletreemodel) & would like to know what's wrong.

Date: Fri, 12 Mar 2010 13:18:33 +0000
Subject: [PyQt] simpletreemodel throwing error
In-Reply-To: <op.u9getl0lo4xb0d@internet-rakete>
References: <op.u9getl0lo4xb0d@internet-rakete>
Message-ID: <7882ffbaf71f3bb1fbad22acb0694fb2@localhost>

On Fri, 12 Mar 2010 13:11:35 +0100, "Sebastian Elsner"
<sebastianelsner at freenet.de> wrote:
> Hello,
> 
> the simple tree model example seems to work fine at first, but when
closed 
> 
> the terminal prints:
> 
> QObject::startTimer: QTimter can only be used with threads started with  
> QThread
> 
> I run the example unchanged from within Eclipse with Pydev using the  
> latest PyQt 4.7 on Windows XP 64bit SP2.
> 
> What is wrong here? Can it be ignored?

It's another example of things being destroyed in the wrong order when an
application terminates.

I've changed things (in tonight's snapshot) so that all top level widgets
are explicitly destroyed before the QApplication instance.

Phil

Thanks,
-Brian


[Attachment #5 (unknown)]

<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; \
-webkit-line-break: after-white-space; ">Hello,<div><br></div><div>&nbsp; From the \
mail archives in March 2010, I see that simpletreemodel was throwing an error on \
exit. &nbsp;Phil responded saying that things were being destroyed in the wrong order \
on exit &amp; that there would be a fix put into that night's snapshot. &nbsp;I don't \
believe the change ever made it into the source tree, as it still exhibits this \
behavior. &nbsp;</div><div><br></div><div>&nbsp; How can this example be fixed? \
&nbsp;I'm seeing the same error in my code (which is based largely off \
simpletreemodel) &amp; would like to know what's \
wrong.</div><div><br></div><blockquote class="webkit-indent-blockquote" \
style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div><div>Date: Fri, 12 \
Mar 2010 13:18:33 +0000</div></div></div><div><div><div>Subject: [PyQt] \
simpletreemodel throwing error</div></div></div><div><div><div>In-Reply-To: \
&lt;op.u9getl0lo4xb0d@internet-rakete&gt;</div></div></div><div><div><div>References: \
&lt;op.u9getl0lo4xb0d@internet-rakete&gt;</div></div></div><div><div><div>Message-ID: \
&lt;7882ffbaf71f3bb1fbad22acb0694fb2@localhost&gt;</div></div></div><div><div><div><br></div></div></div><div><div><div>On \
Fri, 12 Mar 2010 13:11:35 +0100, "Sebastian \
Elsner"</div></div></div><div><div><div>&lt;sebastianelsner at <a \
href="http://freenet.de">freenet.de</a>&gt; \
wrote:</div></div></div><div><div><div>&gt; \
Hello,</div></div></div><div><div><div>&gt;&nbsp;</div></div></div><div><div><div>&gt; \
the simple tree model example seems to work fine at first, but \
when</div></div></div><div><div><div>closed&nbsp;</div></div></div><div><div><div>&gt;&nbsp;</div></div></div><div><div><div>&gt; \
the terminal prints:</div></div></div><div><div><div>&gt;&nbsp;</div></div></div><div><div><div>&gt; \
QObject::startTimer: QTimter can only be used with threads started with \
&nbsp;</div></div></div><div><div><div>&gt; \
QThread</div></div></div><div><div><div>&gt;&nbsp;</div></div></div><div><div><div>&gt; \
I run the example unchanged from within Eclipse with Pydev using the \
&nbsp;</div></div></div><div><div><div>&gt; latest PyQt 4.7 on Windows XP 64bit \
SP2.</div></div></div><div><div><div>&gt;&nbsp;</div></div></div><div><div><div>&gt; \
What is wrong here? Can it be \
ignored?</div></div></div><div><div><div><br></div></div></div><div><div><div>It's \
another example of things being destroyed in the wrong order when \
an</div></div></div><div><div><div>application \
terminates.</div></div></div><div><div><div><br></div></div></div><div><div><div>I've \
changed things (in tonight's snapshot) so that all top level \
widgets</div></div></div><div><div><div>are explicitly destroyed before the \
QApplication instance.</div></div></div><div><div><div><br></div></div></div><div><div \
><div>Phil</div></div></div></blockquote><div><br></div><div>Thanks,</div><div>-Brian</div></body></html>
> 



_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

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

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