[SOLVED] QML point type



  • 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...



  • 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



  • Thank you, this is exactly what I wanted.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.