Results 1 to 6 of 6

Thread: Google Earth/Maps and QWebView API

  1. #1
    Join Date
    Apr 2011
    Posts
    231
    Thanks
    141
    Thanked 6 Times in 5 Posts

    Default Google Earth/Maps and QWebView API

    I have successfully managed to run Google maps on Qt widget through QWebView, previously.
    But, now I wish to know the following:

    • Does Qt have an API replacement for Google map's Javascript API? Like Qt has its dedicated API for Nokia's OVI maps, does it have something similar for Google Maps/Earth which will totally get the Javascript out of picture?
    • Google Earth is said to be in support of Qt 3, does QWebView work with Qt 3? Are they both compatible?
    Last edited by TheIndependentAquarius; 28th June 2012 at 09:24.

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

    Default Re: Google Earth/Maps and QWebView API

    Quote Originally Posted by Anisha Kaul View Post
    Does Qt have an API replacement for Google map's Javascript API? Like Qt has its dedicated API for Nokia's OVI maps, does it have something similar for Google Maps/Earth which will totally get the Javascript out of picture?
    http://www.ics.com/technologies/qt_google_apis

    Google Earth is said to be in support of Qt 3, does QWebView work with Qt 3? Are they both compatible?
    No, they are not. Google Earth does not use Google maps API, at least not the javascript one.
    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.


  3. The following user says thank you to wysota for this useful post:

    TheIndependentAquarius (28th June 2012)

  4. #3
    Join Date
    Apr 2011
    Posts
    231
    Thanks
    141
    Thanked 6 Times in 5 Posts

    Default Re: Google Earth/Maps and QWebView API

    That was an utterly helpful link. Thankful for that.

    But, when I clicked on "Qt Google Places" download link there, I couldn't find any Qt API.
    Perhaps because I don't have the key yet, but is there a way to peek in the API without the key? I wish to see how it looks.

    [EDIT] Ok, I found this: http://code.google.com/p/qt-google-p...sdatamanager.h [/EDIT]

    Quote Originally Posted by wysota View Post
    No, they are not. Google Earth does not use Google maps API, at least not the javascript one.
    Alright, I'll read more on Google Earth API, but I saw your post here: http://www.qtcentre.org/threads/2751...397#post130397
    You said: "It could be a clash between Qt3 used by GoogleEarth and Qt4 used by QtWebKit. Check the plugin dependencies though and make sure WebKit can find it."

    What were you referring to here?
    Last edited by TheIndependentAquarius; 28th June 2012 at 10:27.

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

    Default Re: Google Earth/Maps and QWebView API

    Quote Originally Posted by Anisha Kaul View Post
    What were you referring to here?
    I was speaking about the fact that Google Earth uses Qt3 and QtWebKit uses Qt4 and there are similar symbol names in both (e.g. QApplication) which could result in Qt4-based code trying to access some calls from Qt4 but really reaching into Qt3 code and crashing because of ending up in bogus binary data. One would have to rebuild Qt4 and QtWebKit using a custom namespace (or similar approach) to avoid symbol clashes. Then it might work.
    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. #5
    Join Date
    Apr 2011
    Posts
    231
    Thanks
    141
    Thanked 6 Times in 5 Posts

    Default Re: Google Earth/Maps and QWebView API

    Thanks for the clarification.

    Quote Originally Posted by wysota View Post
    I was speaking about the fact that Google Earth uses Qt3
    Yesterday I noticed that Google Earth is supported on openSUSE 12.1 which uses Qt 4, but you say that Google Earth uses Qt 3.
    Am I missing a point?
    Could you give me a link please which shows the Qt version (supported on Linux) used by Google Earth.
    I searched hard but couldn't find it. Most resultant sites say that it uses Qt but they don't mention the version.

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

    Default Re: Google Earth/Maps and QWebView API

    Quote Originally Posted by Anisha Kaul View Post
    Yesterday I noticed that Google Earth is supported on openSUSE 12.1 which uses Qt 4, but you say that Google Earth uses Qt 3.
    Am I missing a point?
    Qt3 and Qt4 can co-exist (in the meaning that there are files for both installed on the same system). I was speaking about linking (using) both in the same app.
    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. QWebView Problem Drag&Drop Markers in Google Maps
    By MightTower in forum Qt Programming
    Replies: 3
    Last Post: 29th April 2011, 23:19
  2. Google Earth Plugin in QWebKit
    By yannlepage in forum Qt Programming
    Replies: 1
    Last Post: 24th January 2010, 14:10
  3. Google Earth Widget Using QtWebKit
    By danielperaza in forum Qt Programming
    Replies: 1
    Last Post: 24th January 2010, 13:49
  4. Replies: 0
    Last Post: 4th February 2009, 14:46
  5. Does anyone know google earth?
    By miaoliang in forum General Discussion
    Replies: 1
    Last Post: 30th November 2006, 12:48

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
  •  
Qt is a trademark of The Qt Company.