Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt 3D Studio 2.0 Post-Release
-
None
Description
The following example crashes after 1000ms when the second loader is activated.
import QtQuick 2.2 import QtQuick.Window 2.3 import QtStudio3D 2.0 Window { visible: true width: 640 height: 480 Loader { id: loader1 active: true sourceComponent: Studio3D { anchors.fill: parent anchors.margins: 10 Presentation { source: "file:///C:/Qt/Tools/Qt3DStudio/examples/studio3d/SampleProject/SampleProject.uip" } } } Timer { running: true interval: 1000 repeat: false onTriggered: { loader1.active = false loader1.visible = false loader2.active = true } } Loader { id: loader2 active: false sourceComponent: Studio3D { anchors.fill: parent anchors.margins: 10 Presentation { source: "file:///C:/Qt/Tools/Qt3DStudio/examples/studio3d/SampleProject/SampleProject.uip" } } } }
While this might be relevant for application code, but it is also very relevant for the live preview. The life preview does not work reliably if it is not possible to "unload/reload" Studio3D items.