ComboBox::addItem


#1

[quote]Parameters:

newItemId an associated ID number that can be set or retrieved - see getSelectedId() and setSelectedId()[/quote]

NB newItemId may not be zero. if it is you’ll spend ages wondering why your list is missing an item. haven’t tried negative numbers…


#2

Thanks - I should certainly add that to the documentation!

There is an assertion in there to catch zero ID values, so if you missed that you should be doing your testing in debug mode!