1 2 3 4 5 6 7 8 9 10 11 12
import QtQuick 2.15 import QtQuick.Window 2.15 Window { Rectangle { Timer { function foo() {} onTriggered: foo = 1 } } }