PDA

View Full Version : QComboBox with fixed text?



squidge
14th November 2009, 21:39
I want go have some fixed text in the editable part of QComboBox which can't be edited or selected with the mouse. Does anyone have an idea of how to do this?

Eg. instead of :

[<Empty>]
<drop down items>
<drop down items>
<drop down items>

this:

[<fixed text><Empty>]
<drop down items>
<drop down items>
<drop down items>

I don't want the fixed text to be part of the drop down items. Once a drop down item is selected, it will be placed next to the fixed text but not become part of it.