Details
-
Bug
-
Resolution: Incomplete
-
P1: Critical
-
None
-
5.12.8
-
None
-
Ubuntu 18.04
Description
Following code causes crash when click 'Load', 'Unload' and 'Load' again.
import QtQuick 2.12 import QtQuick.Controls 2.12 ApplicationWindow { width: 800 height: 600 visible: true Component { id: labelComponent Label { FontLoader { id: fontLoader source: 'qrc:/awesome.otf' } font.family: fontLoader.name text: '\uf06e' } } Button { x: 200 visible: loader.status === Loader.Ready text: 'Unload' onClicked: loader.sourceComponent = null } Button { visible: loader.status !== Loader.Ready topPadding: pressed ? 0 : -2 font.weight: Font.Bold contentItem: Label { text: 'Load' horizontalAlignment: Qt.AlignHCenter verticalAlignment: Qt.AlignVCenter } onClicked: loader.sourceComponent = labelComponent } Loader { id: loader anchors.fill: parent } }