<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"><<a href="mailto:redstone-cold@163.com" target="_blank">redstone-cold@163.com</a>></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'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>