Results 1 to 9 of 9

Thread: How to use Nokia maps offline with QtMobility!

  1. #1
    Join Date
    Jun 2010
    Posts
    31
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default How to use Nokia maps offline with QtMobility!

    Hi all,

    I want to know if it's possible to write a Qt-base app for symbian phones which uses devices integrated Nokia maps.

    The ecaxtly environment is:
    Device: Nokia N95 8GB, Symbian 9.2 3rd edition, FP1
    Device supports: Qt 4.6.3 and QtMobility 1.0.2

    Developing under w2k, SP2.

    Now there are a lot of examples exists like flicker (QtMobility 1.0.2), lightmaps (QtMobility 1.0.2), maps (QtMobility 1.2).
    But the "flicker" and "lightmaps" uses maps from internet (OpenStreetMap, GoogleMap). And the "maps" uses a so called plugin for accesing local downloaded maps on device (that's what I want!).

    The bad thing:
    "maps" uses QtMobility 1.2 and QML - both are not supported from my device above.

    My fundamental question is:
    Is it generally possible to write an app to use local Nokia maps within my app with Qt 4.6.3 and QtMobility 1.0.2?

    Thanks a lot.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: How to use Nokia maps offline with QtMobility!

    Can you provide a link to this "maps" example that uses offline data? I haven't seen it.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to use Nokia maps offline with QtMobility!

    The location API is in Qt Mobility since 1.0 so provided you have a plugin for accessing offline data, you should be able to use it with mobility 1.0.2 (after compiling it against 1.0.2, of course). All that if you have that plugin.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  4. #4
    Join Date
    Jun 2010
    Posts
    31
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to use Nokia maps offline with QtMobility!

    Quote Originally Posted by wysota View Post
    The location API is in Qt Mobility since 1.0 so provided you have a plugin for accessing offline data, you should be able to use it with mobility 1.0.2 (after compiling it against 1.0.2, of course). All that if you have that plugin.
    What's the name of the plugin? How I can use it? Any examples existing?
    The example "maps" of QtMobility 1.1.2 uses the class QGeoServiceProvider("nokia") to get access to offline OVI maps.

    But this class was introduced with QtMobilit 1.1. What is the equivalent class in QtMobility 1.0?

    Regards
    jackmack


    Added after 8 minutes:


    Quote Originally Posted by ChrisW67 View Post
    Can you provide a link to this "maps" example that uses offline data? I haven't seen it.
    You can find the example in QtMobility 1.1.2 package. You can download it here

    ftp://ftp.qt.nokia.com/qt/add-ons/qt...-src-1.1.3.zip

    Look into examples/mapviewer.

    I use QtSDK 1.1.2 and if you choose in configuration 4.7.3 the QtMobility 1.1.3 is used automatically. The I added the mapwidget.h/.cpp and mainwindow.h/.cpp to my project.
    Last edited by jackmack; 21st March 2012 at 15:18.

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to use Nokia maps offline with QtMobility!

    Quote Originally Posted by jackmack View Post
    What's the name of the plugin?
    The example "maps" of QtMobility 1.1.2 uses the class QGeoServiceProvider("nokia") to get access to offline OVI maps.

    But this class was introduced with QtMobilit 1.1. What is the equivalent class in QtMobility 1.0?
    Did you try building it against 1.0?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  6. #6
    Join Date
    Jun 2010
    Posts
    31
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to use Nokia maps offline with QtMobility!

    No, I use the QtSDk 1.1.2.

    If you choose "building Qt-mobile application" the you can use Qt 4.6.3 (automatically using QtMobility 1.0.2) or Qt 4.7.3 (automatically using QtMobility 1.1.3).

    In the symbian package there is an overview about which symbian version (S60 3rd, 5th...) supports what Qt versions.
    Therefore you cannot only linking Qt 4.6.3 to 1.1.3.

  7. #7
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to use Nokia maps offline with QtMobility!

    Quote Originally Posted by jackmack View Post
    No, I use the QtSDk 1.1.2.

    If you choose "building Qt-mobile application" the you can use Qt 4.6.3 (automatically using QtMobility 1.0.2) or Qt 4.7.3 (automatically using QtMobility 1.1.3).
    So build the plugin using one of these. What's the problem?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  8. #8
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: How to use Nokia maps offline with QtMobility!

    Look into examples/mapviewer.
    The QT Mobility 1.2 "mapsdemo" example uses the "nokia" plugin and Ovi maps to provide online map service, not offline. Without a network connection you may still have access to maps already in the small cache but outside that no mapping data will be available. That's why I asked where the offline, that is not requiring a network connection, maps plugin was. I'd love to have one that can do a basic world map without online connectivity, rather than having to write it myself.

  9. #9
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to use Nokia maps offline with QtMobility!

    Actually this plugin should be available somewhere as Nokia N9 mapping application can use offline maps and since it's written in QML, I'm assuming it's using QtMobility for map access.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. using offline ovi map
    By k.elgohare in forum Qt Programming
    Replies: 1
    Last Post: 18th March 2012, 14:54
  2. Replies: 2
    Last Post: 26th October 2011, 13:53
  3. Replies: 1
    Last Post: 28th September 2011, 14:04
  4. Download Qt docs for offline viewing
    By ravi.xolve in forum Newbie
    Replies: 2
    Last Post: 22nd April 2011, 09:16
  5. Offline flash video
    By iUser59 in forum Qt Programming
    Replies: 4
    Last Post: 10th June 2009, 14:17

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.