Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[solved]How to add an item to combobox at the end of combobox list?
Ratzz last edited by Ratzz
I have a Combo-box and initially "Item 0" and "NULL" is added to it .
I have a push button which adds "item1"...."item9" (one push will add one item ) from the Qlist. When i press a push button "item 1 " is added in the Combo-box . It will add up in the 3rd position i.e,after "NULL". Now i want the "NULL" value at the bottom of combo-box list whenever I press push button .
How to add/ make the items to be displayed at the end of the list ?
you could use
void QComboBox::insertItem(int index, const QString & text, const QVariant & userData = QVariant())
to control where to insert the "Item X"
Ratzz last edited by
Thanks for the reply.
It helped me out.
This post is deleted!