On 25 April 2014 11:51, Alberto Mardegan <ma...@users.sourceforge.net>wrote:
> For instance, I would like to have a GeoPoint type with "latitude" and > "longitude" properties; if I exposed it as a QVariantMap, I wouldn't be > able to prevent the QML code from doing stuff like: > p.latitude = 60 > p.longitde = 10 // note the typo > An approach like http://qt-project.org/doc/qt-4.8/qscriptclass.html would allow this to be enforced. Rich.
_______________________________________________ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development