[Development] QML Location show a Route
Aaron McCarthy
aaron.mccarthy at nokia.com
Wed Aug 22 01:08:23 CEST 2012
Hi Thomas,
> Hi, I want to try out some functions of Qt Location 5.0.
> I’m only using QML Quick 2.0.
> So I already activated and added the Plugin, “nokia” with the token and
> the app_id.
> I also added the Proxy, so that so Map can be loaded.
> Showing the Map and navigate to some Places with coordinates already
> works.
> Map Circles and MapQuickItem works, too.
> Now my problem, I added:
The code is fine except for the declaration of
> Route {
> id: routeData
> }
It ends up shadowing the RouteModel role of the same name. You do not need to
provide a Route object yourself, RouteModel provides them. Deleting the above
and it should work.
Cheers,
--
Aaron McCarthy, Software Engineer
Nokia, Qt Development Frameworks
Level 1, 53 Brandl St,
Brisbane Technology Park, Eight Mile Plains,
QLD, Australia, 4113
http://qt.nokia.com/
More information about the Development
mailing list