Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
5.15.11, 6.2.6, 6.4.1
-
Windows 10 Pro 22H2, MSVC 2019 x64
Description
import QtQuick 2.15 import QtQuick.Window 2.15 import QtQuick.Layouts 1.15 Window { id: mainWindow width : 640 height : 480 visible: true // No Layout: width and height are respected Image { width : 50 height: 50 sourceSize.width : 100 sourceSize.height: 100 source: "circle.svg" } // In ColumnLayout: Image is drawn at sourceSize; width and height are ignored ColumnLayout { x: 50 width: 50 height: 50 Image { width : 50 height: 50 sourceSize.width : 100 sourceSize.height: 100 source: "circle.svg" } } }
Expected outcome
2 circles are drawn with the same sizes
Actual outcome
The 2nd circle is bigger than the first
Notes
This seems to affect Windows but not macOS
Attachments
Issue Links
- resulted in
-
QTBUG-109089 qmlcachegen/qmlsc: Warn if an Item in a Layout specifies `width` instead of `Layout.preferredWidth`
-
- Reported
-