Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.15.10, 6.8.1
-
05664b843 (dev), 10c452a1e (6.10), 9927f5c0b (6.9), e3d6d9568 (tqtc/lts-6.8)
Description
Rectangle of a text type unexpected rendered within row layout in QML.
Snippet to reproduce the issue:
Window { width: 640 height: 480 visible: true title: "QML Row Example" Column { spacing: 20 anchors.centerIn: parent // First Row: Correct Behavior Row { spacing: 10 Rectangle { width: 20 height: 20 color: "grey" } Text { text: "hello" Rectangle { anchors.fill: parent anchors.margins: -5 opacity: 0.5 color: "red" } } } // Second Row: Unexpected red rectangle behavior Row { spacing: 10 Rectangle { width: 20 height: 20 color: "grey" } Text { text: "" Rectangle { anchors.fill: parent anchors.margins: -5 opacity: 0.5 color: "red" } } } } }
Attachments
For Gerrit Dashboard: QTBUG-132607 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
651871,10 | Positioners: hide zero-width or height items | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
653841,2 | Positioners: hide zero-width or height items | 6.10 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
654175,3 | Positioners: hide zero-width or height items | 6.9 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
654514,2 | Positioners: hide zero-width or height items | tqtc/lts-6.8 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |