Re: QComboBox padding bug
Maybe the behavior you are seeing is because you are creating your combobox and putting it directly into the QWidget parent without using any layout or geometry. Try making a proper compound widget with a layout and using "new" to create the combobox on the heap instead of on the stack.
Re: QComboBox padding bug
Quote:
Originally Posted by
d_stranz
Maybe the behavior you are seeing is because you are creating your combobox and putting it directly into the QWidget parent without using any layout or geometry. Try making a proper compound widget with a layout and using "new" to create the combobox on the heap instead of on the stack.
Layouting widget or especially the way of creating them cannot influence this behaviour. O_o
I am almost sure that it is a bug in the Qt.
Also I found out that border-radius property in this case working bad as well.
So the question is how to workaround indeed.
Re: QComboBox padding bug
This looks like a style problem. It works perfectly when the style draws the drop-down menu below the combobox. As soon as it draws it on top (e.g. gtk2, fusion), the additional space is added. I would suggest to open a qt bug report.
Re: QComboBox padding bug
Quote:
Originally Posted by
ChristianEhrlicher
I would suggest to open a qt bug report.
Where to do that?
Re: QComboBox padding bug