Hello,
I have a QComboBox that is tied to a model. I want to create a default text placeholder (without making it editable), so I added my placeholder text as the first item in the model. It shows up just fine, but I can't get it to set as the default selection in the QComboBox. At what point can I make the call to setCurrentIndex without the value being overwritten? The technique does work (qcb->setCurrentIndex (qcb->findText ("This is placeholder text..."));, but only if I insert it well after the dialog has been creted and shown... I've tried doing it in the show() slot, but with no success...
Bookmarks