Well, just use QComboBox::insertSeparator(int index) that would insert a separator, in your example the index would be 5, so
Qt Code:
  1. ui->comboBox->insertSeparator(5);
To copy to clipboard, switch view to plain text mode 
that would make all the job