1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
pragma Strict import QtQml QtObject { id: self property var thing: self function doThing() : bool { if (self.thing) return true; else return false; } }