Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
6.4
-
None
-
-
6173fc0e4b (qt/qtdeclarative/dev) 6173fc0e4b (qt/tqtc-qtdeclarative/dev) 8c155f015a (qt/qtdeclarative/6.3) 31531f0bd4 (qt/qtdeclarative/6.4) 8c155f015a (qt/tqtc-qtdeclarative/6.3) 31531f0bd4 (qt/tqtc-qtdeclarative/6.4)
Description
When the contentItem of the custom menu is the Item, the text overlaps, such as the sample code and sample picture in the attachment
import QtQuick import QtQuick.Controls Window { width: 640 height: 480 visible: true title: "QTBUG-104470" Menu { id: menu visible: true contentItem: FocusScope { implicitHeight: view.implicitHeight Button { anchors { top: parent.top topMargin: 5 horizontalCenter: parent.horizontalCenter } z: 1 text: "Button Up" visible: view.interactive } ListView { id: view width: parent.width implicitHeight: Math.min(contentHeight, 300) model: menu.contentModel clip: true currentIndex: menu.currentIndex ScrollIndicator.vertical: ScrollIndicator {} } Button { anchors { bottom: parent.bottom bottomMargin: 5 horizontalCenter: parent.horizontalCenter } z: 1 text: "Button Down" visible: view.interactive } } Repeater { model: 100 MenuItem { text: "Item: " + modelData } } } }
Attachments
Issue Links
- resulted in
-
QTBUG-104544 When the repeater is used as the contentItem of the menu, all items are invisible
- Closed