Skip to content

Instantly share code, notes, and snippets.

@oKcerG
Last active Jan 14, 2020
Embed
What would you like to do?
import QtQuick 2.9
Binding {
id: root
property int delay: 500
property alias value: root._delayedValue
property alias _actualValue: root.value
property var _delayedValue
on_DelayedValueChanged: timer.restart()
property Timer timer: Timer {
interval: root.delay
onTriggered: root._actualValue = root._delayedValue
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment