[Interest] Problems customising Combobox popup with Qt 6.8.0
Nuno Santos
nuno.santos at imaginando.pt
Tue Nov 12 20:43:22 CET 2024
Hi,
Since Qt 6.8.0, customising Combobox popup property makes the Combobox unscrollable when the list goes beyond the window height. However, if the popup is removed, scrolling works as expected.
Is there any particular detail on the documentation customisation code that hasn’t been updated yet?
ComboBox {
id: control
model: 100
popup: Popup {
y: control.height - 1
width: control.width
implicitHeight: contentItem.implicitHeight
padding: 1
contentItem: ListView {
clip: true
implicitHeight: contentHeight
model: control.popup.visible ? control.delegateModel : null
currentIndex: control.highlightedIndex
ScrollIndicator.vertical: ScrollIndicator { }
}
background: Rectangle {
border.color: "#21be2b"
radius: 2
}
}
}
Project attached.
Has anyone faced this problem?
Thanks in advance!
Regards,
Nuno

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20241112/9c1a93af/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: combo_box_text.zip
Type: application/zip
Size: 3428 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20241112/9c1a93af/attachment.zip>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20241112/9c1a93af/attachment-0001.htm>
More information about the Interest
mailing list