Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

Bindings bug or feature

$
0
0
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)     } }

Viewing all articles
Browse latest Browse all 4972

Trending Articles