PDA

View Full Version : lineEdit + comboBox behaviour widget



maverick_pol
21st April 2009, 18:35
hi guys,

I have a simple questions, probably, :
I need a comboBox which will have the first row empty and the user can insert text there. However there should also be a "expand" button on the right( as comboBox has it) and the user can also select a given option if does not want to enter anything?
Could you give me a hint how to achieve it ?

Thank you,

soumyadeep_pan
22nd April 2009, 05:00
Probably you can use QSpinBox ......

aamer4yu
22nd April 2009, 05:27
I need a comboBox which will have the first row empty and the user can insert text there. However there should also be a "expand" button on the right( as comboBox has it) and the user can also select a given option if does not want to enter anything?
Isnt that wat a QComboBox does ? You have a line edit where you can insert text, you have down arrow which when clicked gives u a list of options to select from.

May be I didnt understand clearly :confused:

jpn
22nd April 2009, 11:34
QComboBox::editable