diff options
author | Sami Varanka <sami.varanka@qt.io> | 2022-10-18 13:57:24 +0300 |
---|---|---|
committer | Sami Varanka <sami.varanka@qt.io> | 2022-10-19 08:23:05 +0300 |
commit | 8ff399b59426d689fc84df8f2e78d0265db1c958 (patch) | |
tree | 38ac462b97e77d3b57edd79d383e0af56521651d /examples/quick/tutorials | |
parent | 7c9bc478c56e0b74b2c270ecad698ba7316084a4 (diff) |
Fix TypeError in dynamicview1 example
Rectangle's parent was null when setting
left and right anchors. Use
ListView.view.width as width instead.
Fixes: QTBUG-106645
Change-Id: I2a95b05c2fc13843168d9b314bfe9555d92768aa
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'examples/quick/tutorials')
-rw-r--r-- | examples/quick/tutorials/dynamicview/dynamicview1/dynamicview.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/quick/tutorials/dynamicview/dynamicview1/dynamicview.qml b/examples/quick/tutorials/dynamicview/dynamicview1/dynamicview.qml index 60167aa813..228dc4b56f 100644 --- a/examples/quick/tutorials/dynamicview/dynamicview1/dynamicview.qml +++ b/examples/quick/tutorials/dynamicview/dynamicview1/dynamicview.qml @@ -63,7 +63,7 @@ Rectangle { Rectangle { id: content - anchors { left: parent.left; right: parent.right } + width: ListView.view.width height: column.implicitHeight + 4 border.width: 1 |