<div dir="ltr">Here is  the KSelectionProxyModel model<div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,255);display:inline">​ ​</div>problem. It crashes with segmentation fault while selection/deselection occurs...<br><br>Test sample and the case:<br><a href="https://github.com/milabs/QtSampleModel/tree/treemodel">https://github.com/milabs/QtSampleModel/tree/treemodel</a><br><br>Also, looks like that model doesn't operate with QTableView<div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,255);display:inline">​ ​</div>correctly. The patch shows the problem<div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,255);display:inline">​ ​</div>place:<br><br>@@ -2446,7 +2446,7 @@ int KSelectionProxyModel::columnCount(const QModelIndex &index) const<br>             // it's actually 0 ,but must return what the source model says, even if we<br>             // have no rows or columns.<br> #if QT_VERSION >= 0x040700<br>-            || d->m_rootIndexList.isEmpty()<br>+//            || d->m_rootIndexList.isEmpty()<br> #endif<br>        ) {<br>         return 0;<br><div><br></div></div>