[Interest] QML: weird popup positioning in ComboBox
Alexander Dyagilev
alervdvcw at gmail.com
Sun Jun 9 08:31:39 CEST 2024
Hello,
I'm trying to customize my ComboBox. All is working fine except that the
Popup is positioned above the control.
I'm overriding popup using examples in docs. I set its y position to y:
combo.height-1. I.e.
ComboBox {
id: combo
.....
popup: Popup {
y: combo.height-1
}
}
Sometimes it works as expected, sometimes - it does not. See the screenshot
below:
[image: image.png]
If I set popup's y to some small value, e.g. 5 (five pixels), it works
"better". Now at least it's positioning it below the combo:
[image: image.png]
If I set it to 10 pixels, this weird thing happens:
[image: image.png]
What is going on? Is it me? Or maybe it's a Qt bug?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20240609/94c2a442/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 25250 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20240609/94c2a442/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 28476 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20240609/94c2a442/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 24571 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20240609/94c2a442/attachment-0005.png>
More information about the Interest
mailing list