LDForge


Re: [0.3-140907-1955] LDForge - Tha beta is fixed
#14
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 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.
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.
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".
The image shows that the inner part of the peghole.dat painted red. This program is correct or not correct display?
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.

I want to get it working proper for a future version but it certainly is an annoying problem to tackle.
Reply
« Next Oldest | Next Newest »



Messages In This Thread
LDForge - by Santeri Piippo - 2014-09-07, 1:37
Re: [0.3-140907-1955] LDForge - Tha beta is fixed - by Santeri Piippo - 2014-09-09, 9:02
RE: [dead] LDForge - by Roland Melkert - 2016-04-24, 19:49
RE: [dead] LDForge - by Santeri Piippo - 2016-04-24, 20:08
RE: [dead] LDForge - by Nils Schmidt - 2016-04-29, 14:52
RE: [dead] LDForge - by Roland Melkert - 2016-04-29, 17:35
RE: [dead] LDForge - by Santeri Piippo - 2016-10-16, 14:24
RE: LDForge - by Santeri Piippo - 2017-03-03, 23:56
RE: LDForge - by Philippe Hurbain - 2017-03-04, 8:21

Forum Jump:


Users browsing this thread: 1 Guest(s)