PDA

View Full Version : Editing and adding entries to a QComboBox



bruccutler
29th May 2007, 16:07
I have a QComboBox with the setLineEdit set to a line edit control. I have set the editable flag for the combo box, I have set the InsertPolicy to InsertAtCurrent.

How do I add/edit entries in the combo box.

I can edit entries, but it doesn't stick. I press the Insert key, but nothing happens.

I can't find any examples of manual editing of QComboBox elements.

And, I don't know how to tell the control to allow me to add an item to the list.
- BRC

bruccutler
29th May 2007, 17:13
I figured it out. I removed the QLineEdit control and then listened to the EditTtextChanged signal and fed that into the list control.