Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Incorrect ComboBox height
After migrating to QT6.2 the height of a ComboBox in my app become incorrect. With Fusion style it looks like this:
With Default style on Windows 10 the font is smaller and height is correct:
AxelVienna last edited by
You need to check two factors.
(1) Set the size policy to "resize to contents"
(2) Make sure that the layout where the box is located provides enough space for it to resize properly.
Set the size policy to "resize to contents"
It is Quick but not Widgets. As far as I see there is no
sizeAdjustPolicyproperty, see https://doc-snapshots.qt.io/qt6-dev/qml-qtquick-controls2-combobox.html
@Dmitriano The same effect on both Windows and Android.