Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.5.0, 5.6
-
None
-
Fedora 20, Android 5.0.1, Kubuntu 15.04, Windows 8.1 with Qt 5.5.0
-
59f7b30d41b06b1d9da81aea5784d57ecd91ab04
Description
When RowLayout is loaded asynchronously and is filled by Repeater item that should be first ends up at the end. Code below produces 4 Text items with consecutive numbers starting from 0. Element "0" which should be first is placed in RowLayout as last. The same happens in ColumnLayout.
import QtQuick 2.4 import QtQuick.Window 2.2 import QtQuick.Layouts 1.1 Window { visible: true width: 100 height: 50 Loader { asynchronous: true anchors.fill: parent sourceComponent: RowLayout { anchors.fill: parent Repeater { model: 4 delegate: Text { text: index Layout.preferredWidth: 5 Layout.fillHeight: true } } } } }
Attachments
Issue Links
- relates to
-
QTBUG-45152 Repeater in a RowLayout arranges children incorrectly when model changes.
- Closed