Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
5.6.0, 5.6.1, 5.7.0
-
Linux GCC 4.8 x86_64
Windows MSVC 2015 x86_64
Description
Opening and closing TestQml.qml in qmlscene causes a crash in the destructor of QQuickItem. The same happens in a C++ program when loading the qml to a QQuickWidget and then unloading it.
No crash occurs with Qt 5.5.1.
No crash occurs when ColumnLayout is replaced with Column or when RowLayout is replaced with Row. No crash occurs when merging TestQml.qml and ColumnInRectangle.qml to the single file NoCrash.qml (in the attachment), that avoids using the default property alias to insert children.
May be related to bug 52241, but it is not the same, because I was not able to reproduce that bug on my Linux system.
import QtQuick 2.0 import QtQuick.Controls 1.0 import QtQuick.Layouts 1.0 ColumnInRectangle { RowLayout { Text { text: 'Close me.' } } }
import QtQuick 2.0 import QtQuick.Layouts 1.0 Row { default property alias content: column.children ColumnLayout { id: column } }
Attachments
Issue Links
- is duplicated by
-
QTBUG-51927 [REG:5.6.0-alpha1->5.6.0] adding items to GridLayout with default property alias causes a crash during destruction
- Closed