<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello,<div><br></div><div> 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. </div><div><br></div><div> 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.</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: <op.u9getl0lo4xb0d@internet-rakete></div></div></div><div><div><div>References: <op.u9getl0lo4xb0d@internet-rakete></div></div></div><div><div><div>Message-ID: <7882ffbaf71f3bb1fbad22acb0694fb2@localhost></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><sebastianelsner at <a href="http://freenet.de">freenet.de</a>> wrote:</div></div></div><div><div><div>> Hello,</div></div></div><div><div><div>> </div></div></div><div><div><div>> the simple tree model example seems to work fine at first, but when</div></div></div><div><div><div>closed </div></div></div><div><div><div>> </div></div></div><div><div><div>> the terminal prints:</div></div></div><div><div><div>> </div></div></div><div><div><div>> QObject::startTimer: QTimter can only be used with threads started with </div></div></div><div><div><div>> QThread</div></div></div><div><div><div>> </div></div></div><div><div><div>> I run the example unchanged from within Eclipse with Pydev using the </div></div></div><div><div><div>> latest PyQt 4.7 on Windows XP 64bit SP2.</div></div></div><div><div><div>> </div></div></div><div><div><div>> 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>