[Qt-creator] subtype of QtQuick.Window.Window crashes qmlpuppet

Xiaoqiang Wang xiaoqiangwang at gmail.com
Wed Oct 14 22:40:38 CEST 2015


Hi,

If an qml application directly uses QtQuick.Window.Window as the root, the designer can properly render. e.g.

# demoApp1.qml
import QtQuick 2.0
import QtQuick.Window 2.0
import QtQuick.Controls 1.0

Window {
    visible: true
    width: 640
    height: 480
    title: qsTr("demoApp1")

    Button {
        width: 100
        height: 20
        anchors.centerIn: parent
        text: 'Click Me!'
    }
}


But if I just make a subtype of QtQuick.Window.Window,
# MyWindow.qml
import QtQuick.Window 2.0
Window {
    color: '#bbbbbb'
}

And use it in demoApp2.qml. This will crash the underlying puppet in designer mode.
The message is “Qt Quick emulation layer crashed (1:0)"
# demoApp2.qml
import QtQuick 2.0
import QtQuick.Window 2.0
import QtQuick.Controls 1.0

MyWindow {
    width: 640
    height: 480
    title: qsTr("demoApp2")

    Button {
        width: 100
        height: 20
        anchors.centerIn: parent
        text: 'Click Me!'
    }
}

The qt creator version is 3.5.0. The project is using Qt 5.4 on OS X 10.10.5

Best
Xiaoqiang


More information about the Qt-creator mailing list