I have a filled QComboBox, I want to clear it and fill it again. I do that with the following code:
// clear the comboBox
ui.staHealthNameCombo->clear();
// put the QStringList to the Combobox
ui.staHealthNameCombo->addItems(newAssuredComboStringList);
When calling the addItems function I always get :
ASSERT failure in QList<T>:: at:"index out of range" in c:\...\qt4.2.2\...\qlist.h
The problem is obviously an out of range error when putting the qStringlist into the combobox. However, I get the same error when I use the addItem - Function that only uses a qstring as an argument.
Could this be an error in the QT API?
Thanks for your help.
Bookmarks