Of course, there are a lot of workarounds. For example:
main.qml
import QtQuick 2.3
import QtQuick.Controls 1.2
import QtQuick.Layouts 1.1
ApplicationWindow {
id: window
property var currentDate: null
width: 640
height: 480
function setCurrentDate(newDate) {
currentDate = newDate
requestManager.requestData()
}
RequestManager {
id: requestManager
date: currentDate
}
Button {
text: "Click Me!"
onClicked: setCurrentDate(new Date)
}
}
↧