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

List:       pykde
Subject:    Re: [PyQt] causes self to be owned by Qt instead of PyQt ???
From:       Andreas Pakulat <apaku () gmx ! de>
Date:       2015-04-02 16:18:29
Message-ID: CAExHGmSWo+SUnL5CQAbv-0WBaeOD93ABuggVSAh7hPbOhdrZ1A () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi,

On Thu, Apr 2, 2015 at 3:18 PM, redstone-cold <redstone-cold@163.com> wrote:

>
>
> Ok, this is the example
> https://bpaste.net/show/a5b2b50e5052
>
> BTW,if you comment print(model.parent()),then console show
> QObject::startTimer: QTimer can only be used with threads started with
> QThread
>
> what's wrong in the code ?
>

QAbstractItemModel.parent() require an argument, so calling it without an
argument is a bug.

And the message is printed regardless of wether the print is there or not,
thats likely an internal issue in Qt.

Andreas

[Attachment #5 (text/html)]

<div dir="ltr">Hi,<div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr \
2, 2015 at 3:18 PM, redstone-cold <span dir="ltr">&lt;<a \
href="mailto:redstone-cold@163.com" \
target="_blank">redstone-cold@163.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div><div \
style="color:rgb(0,0,0);font-family:arial;font-size:14px"><br></div><div \
style="color:rgb(0,0,0);font-family:arial;font-size:14px"><br></div><div><div>Ok, \
this is the example  </div><div><a href="https://bpaste.net/show/a5b2b50e5052" \
target="_blank">https://bpaste.net/show/a5b2b50e5052</a></div><div><br></div><div>BTW,if \
you comment print(model.parent()),then console show</div><div>QObject::startTimer: \
QTimer can only be used with threads started with \
QThread</div><div><br></div><div>what&#39;s wrong in the code \
?</div></div></div></blockquote><div><br></div><div>QAbstractItemModel.parent() \
require an argument, so calling it without an argument is a \
bug.</div><div><br></div><div>And the message is printed regardless of wether the \
print is there or not, thats likely an internal issue in \
Qt.</div><div><br></div><div>Andreas</div></div></div></div>


[Attachment #6 (text/plain)]

_______________________________________________
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