Unsolved QComboBox visible item populating issue
-
Hi all,
I have a QComboBox in my MainWindow. I have 10 items added to this ComboBox. And I have set the maxVisibleItem to just show 4 at a time. Users will have to use the up arrow key and down arrow key on keyboard to navigate the ComboBox. However, when the user navigate to the 5th item, the ComboBox's popup list is not repopulated and the 5th item is not seen on the popup and also did not see the highlight. Please advise. Thank you.
-
What Qt version and OS? Please show some code.
-
@Christian-Ehrlicher qt version 5.4.0. the mmi interface is done using the qt creator, drag and drop.
void MainWindow::on_down_slot() { int iIndex = ui->ui->comboxbox1->currentIndex() - 1; ui->comboxbox1->setCurrentIndex(iIndex); }
so when down key is detected, the above slot will be executed.