Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.2.0 Alpha
-
None
Description
I believe this is a bug in the Behavior element of the QML language. However, only layouts currently uses attached properties that can in theory be animated (however, its a bad idea due to performance reasons).
I'm not sure if we want the Behavior element to support attached properties like this, but it should not assert.
Opening this with qmlscene gives:
ASSERT: "mo" in file qml\qqmlvme.cpp, line 853
import QtQuick 2.1 import QtQuick.Layouts 1.1 Item { width: 300 height: 400 RowLayout { anchors.fill: parent Rectangle { color: "red" Layout.preferredWidth: 50 Layout.fillHeight: true } Rectangle { color: "yellow" Layout.fillWidth: true Layout.fillHeight: true } Behavior on Layout.preferredWidth { NumberAnimation { duration: 1000 } } } }
Attachments
Issue Links
- relates to
-
QTBUG-34045 Animating width of child rectangle in Layout container doesn't update other children
- Closed