[Qt-interest] qt 4.4.3 : QTreeWidgetItem->addChild does not seem to append for the invisibleRootItem ?
wim.delvaux at adaptiveplanet.com
wim.delvaux at adaptiveplanet.com
Mon Feb 23 03:36:05 CET 2009
In the following 'trace' the TLIC represents the current list of topLevelItems
(called by iterating over topLevelitem/topLevelItemCount). First arg is the
index, second the pointer value of type QTreeWidgetItem
TLI represents the next added toplevel item (using addChild) first arg is the
topLevelItemCount BEFORE the addChild and second the pointer to the value that
is added as Child to the invisibleRootItem();
TLIC 0 0x8163438
TLI 0 0x8163438
...
TLIC 0 0x81a0a88
TLIC 1 0x8163438
TLI 1 0x8163438
As you can see, the pointer of the item added first (on index) is moved to
index 1. I would have expected that the new 0x81a0a88 pointer would be put
on index 1 and NOT on 0 ??
What is going on ?
W
More information about the Qt-interest-old
mailing list