Incorrect ComboBox height
Unsolved
Qt 6
-
@Dmitriano
You need to check two factors.
(1) Set the size policy to "resize to contents"yourComboBox->setSizeAdjustPolicy(QComboBox::SizeAdjustPolicy AdjustToContents);
(2) Make sure that the layout where the box is located provides enough space for it to resize properly.
-
@AxelVienna said in Incorrect ComboBox height:
Set the size policy to "resize to contents"
It is Quick but not Widgets. As far as I see there is no
sizeAdjustPolicy
property, see https://doc-snapshots.qt.io/qt6-dev/qml-qtquick-controls2-combobox.html