You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Thursday, March 3rd 2005, 10:26pm

droplist QComboBox

How to make a QComboBox with the listBox always dropped down?
Nothing in the docs I can see about style...
Thanks,
sb
Thanks.

  • "wysota" is male

Posts: 4,276

Location: Warsaw, POLAND

  • Send private message

2

Thursday, March 3rd 2005, 11:57pm

RE: droplist QComboBox

Why would you want to do that? Can't you use QListBox?

3

Friday, March 4th 2005, 1:37pm

RE: droplist QComboBox

I need to be able to add new entries to it. The listbox docs says its read-only. I guess I will have to synthesize a combo/listbox duo to look and work like i need it to. I think in VC you can just set the style of the combo: (simple, or droplist or dropdown ...something like that) for a normal CComboBox.
Thanks,
sb
Thanks.

4

Friday, March 4th 2005, 3:32pm

RE: droplist QComboBox

I ended up using a comobobox which has maxItems (0) and a listbox and putting them together to simulate what I want.
Thanks.

  • "wysota" is male

Posts: 4,276

Location: Warsaw, POLAND

  • Send private message

5

Friday, March 4th 2005, 5:46pm

RE: droplist QComboBox

You can use QLineEdit for editing and QListBox for displaying.