Hi,<div><br></div><div>I have a tree data structure which I'm trying to display on a QTreeView, using a QSortFilterProxyModel with a QAbstractItemModel as its source. The problem is when I try to add/insert data into my data structure my application crashes without any exceptions or warning messages. It simply dies silently.</div>
<div><br></div><div>I published two source codes pretty much similar to each other on pastebin:</div><div><br></div><div>- <a href="http://pastebin.com/xMjukTcK">http://pastebin.com/xMjukTcK</a> - The version of the code using the QTreeView connected directly to the QAbstractItemModel, without the proxy. There the insert rows works fine, when I click the "Go" button.</div>
<div><br></div><div>- <a href="http://pastebin.com/8trLpxLF">http://pastebin.com/8trLpxLF</a> - The version of the code using the QTreeView connected to the QSortFilterProxyModel. There the insert rows causes the application to crash silently, when clicking the "Go" button.</div>
<div><br></div><div>I tried a few different approaches, but got the result over and over again, then I decided to try some help in here to see if someone could please shed a light.</div><div><div><br></div><div>Extra useful information about my current environment:</div>
<div>* Ubuntu Linux 11.10<br>* Python 2.7.2</div><div>* PyQt version 4.8.6</div><div>* Qt version 4.7.4</div><div><br></div><div>Many thanks,</div><div>Gabriel</div><div><br></div><div><br clear="all">Gabriel de Carvalho Nogueira Reis<br>
Software Developer<br>+44 7907 823942<br>
</div></div>