1 2 3 4 5 6 7 8 9 10 11 12 13 14
pragma Strict import QtQml QtObject { objectName: "astringb" property int stringLength: objectName.length property string a: { const value = objectName; if (value && value.length > 0) { return value; } return "no" } }