Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.8, 5.9
-
None
Description
The attached example creates and deletes tabs in a tabview and leaks memory.
Relevant comment from the other bug report:
"if you change the tabview to a loader there are no error messages but there is still the memory issue (on 5.9.4 but not on 5.8.0)"
ColumnLayout { anchors.fill: parent RowLayout { C.SpinBox { id: timerInterval; value: 20; minimumValue: 10; maximumValue: 2000 } C.Button { id: btnStartStop text: "Start/Stop" onClicked: { timer.running = !timer.running } } Text { text: counter + " items loaded..." } } Loader { id: loader Layout.fillHeight: true Layout.fillWidth: true } } property int counter: 0 Timer { id: timer interval: timerInterval.value repeat: true onTriggered: { counter++ loader.setSource("qrc:/Page1.qml") } }
Reported original by hafwil
Attachments
Issue Links
- duplicates
-
QTBUG-64563 Memory leak in ListView when using QQuickView
- Closed
- resulted from
-
QTBUG-65946 QML Loader Memory Leak
- Closed