how to change QComboBox items?
Unsolved
General and Desktop
-
I want to change the items of the QComboBox by receiving the current row value of the QListWidget. For example, if the current row value of the QListWidget is 0, I add values of the 0th idx to the QComboBox, and if 1, I add values of the 1st idx to the QComboBox. What should I do?
-
Use QComboBox::setItemData() with Qt::EditRole (or Qt::DisplayRole - it's the same for the underlying QStandardItemModel)