1 2 3 4 5 6 7 8
import QtQml 2.0 QtObject { property int counter: 0 property var f: function() { counter++; } }