Travis Cobbs Wrote:I haven't done any Qt programming in years (perhaps 10+), but have you tried calling setUpdatesEnabled(false) on the list object prior to doing the "select all", followed by setUpdatesEnabled(true) once you've selected everything?I just tried doing it that way and it does not remove the problem. Interrupting the program and inspecting the backtrace suggests it gets stuck at doing the selection range merges.
I know Qt isn't in any way, shape, or form related to Win32, but in Win32, you are advised to do something similar when making large changes to the contents of a list view, and it is quite effective.
Code:
(gdb) bt
#0 0x00007ffff7a64ce0 in QPersistentModelIndex::row() const () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#1 0x00007ffff7353da7 in QItemSelectionRange::intersects(QItemSelectionRange const&) const () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#2 0x00007ffff735714b in QItemSelection::merge(QItemSelection const&, QFlags<QItemSelectionModel::SelectionFlag>) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#3 0x00007ffff735a594 in QItemSelectionModel::select(QItemSelection const&, QFlags<QItemSelectionModel::SelectionFlag>) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#4 0x00007ffff73556c8 in QItemSelectionModel::select(QModelIndex const&, QFlags<QItemSelectionModel::SelectionFlag>) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#5 0x00007ffff7365649 in QListWidget::setItemSelected(QListWidgetItem const*, bool) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#6 0x0000000000505597 in QListWidgetItem::setSelected (this=0x16bb990, aselect=true) at /usr/include/qt4/QtGui/qlistwidget.h:318
Fyodor Kolov Wrote:Trying to get the part from the part tracker and turn "BFC red/green View".Unfortunately the BFC red/green view is still not complete yet. It doesn't get it right for sub-file references or understand CW-certified part files. For CCW parts it at least gets the polygons right.
The image shows that the inner part of the peghole.dat painted red. This program is correct or not correct display?
I want to get it working proper for a future version but it certainly is an annoying problem to tackle.