[SOLVED] QML point type
-
wrote on 7 Apr 2011, 01:17 last edited by
It's probably silly question, but how to use QML point type?
I want to declare own property of type point and got no clue how to do it -
@property point myPoint: "10, 20"@
gives me
@Point is not a type@
result... -
wrote on 7 Apr 2011, 06:46 last edited by
Hi,
It isn't currently possible to declare point-type properties from QML, so you'll need to do something like:
@property variant myPoint: Qt.point(10,20)@
instead.
Regards,
Michael -
wrote on 10 Apr 2011, 13:47 last edited by
Thank you, this is exactly what I wanted.
1/3