This too should work,
onDoubleClicked: {
var component = Qt.createComponent("AppWin.qml")
var window = component.createObject(root)
window.show()
}
ApplicationWindow {
id: newWindow
visibility: "Maximized"
visible: true
Rectangle {
anchors.fill: parent
color: "red"
}
}
here no dimensions specified, just the visibility property set to Maximized.
↧