1
votes

I'm working on an application which contains an editable QComboBox. I observe the following behavior when I enter some text in the edit field and press the dropdown arrow in the combobox:

alt text

My edit line ends up hidden behind the item "[email protected]". I would like to have the combobox list popup below the edit field, like in the below screen:

alt text

The first screen above is taken on Ubuntu with Qt 4.5 while the second screen is from Suse 11 with Qt 4.4. I'm not aware of any differences regarding change of behavior of QComboBox popups between Qt 4.4 and Qt 4.5. Regardless, I would like the list to behave the same in both distributions.

This is a standard QComboBox with the editable property set to on - there are no stylesheets or special formatting applied to it.

How can I make the list popup below the editable field, like in the second screen?

1
Hey, did you try to ask the Qt developpers for a possible bug ?Andy M
I'm not sure it's a bug and if it is, which version actually has the expected behavior of a default combobox. I'm hoping there's a way to customize the popup position but I can't find this info in Qt docs or Google.Hypherion
I would create a small project, in which you can easily reproduce the bug and ask on Qt's bug tracker... They will answer you quickly !Andy M

1 Answers

3
votes

This looks like a style issue, as the screenshots are taken with different styles. Perhaps you can start investigating by changing style on the failing desktop.