It’s now running. The methods insertSeperator() and setCurrentIndex() should not have the same index. Solution below.
ui->comboBox->insertSeparator(4);
ui->comboBox->setCurrentIndex(4 + 1);
↧