Using a regular QComboBox populated with items, if currentIndex is set to -1, the widget is empty. It would be very useful to instead
QComboBox
currentIndex
-1
One way you can do something similar is to set a placeholder:
comboBox->setPlaceholderText(QStringLiteral("--Select Country--")); comboBox->setCurrentIndex(-1);
This way you have a default that cannot be selected.