hello everybody
I’m new to the forum!
I would like to know if is it possible to pass parameters between windows with qml.
this event of the main window:
MouseArea {
anchors.fill: parent
onClicked: {
Qt.createComponent("detail_dialog.qml").createObject(mainWindow, {});
}
}
and this is the detail_dialog.qml:
import QtQuick 2.0
Item {
Component.onCompleted: console.log(text)
id: detailDialog
anchors.fill: parent
PropertyAnimation {
target: detailDialog
property: "opacity"
duration: 400
from: 0
to: 1
easing.type: Easing.InOutQuad
running: true
}
Rectangle {
id: dialogWindow
width: 200
height: 200
radius: 10
border.color: "black"
anchors.centerIn: parent
Text {
anchors.centerIn: parent
text: "Hello"
}
MouseArea{
anchors.fill: parent
onClicked: {
detailDialog.destroy()
}
}
}
}
is it possible?
↧