1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
import Test 1.0 import QtQuick 1.0 MyTypeObject { property bool test1: false; property bool test2: false; Component.onCompleted: { var a = method(); test1 = (a.width == 13) test2 = (a.height == 14) size = a; } }