Results 1 to 7 of 7

Thread: Google Earth with QGLWidget, or QWebView?

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

    Default Google Earth with QGLWidget, or QWebView?

    From here: Real life use for Qt (outside of Nokia)

    Google Earth is not a good example for QT because the only real action happens in an OpenGL (or DirectX - whatever) widget.
    Questions:

    • So, is it possible to use QGLWidget class for rendering 'cached' Google Earth locations?
    • Are there some reasons for which QGLWidget should be preferred over QWebView for the loading the cached Earth locations
      on Linux or vice versa?
    Last edited by TheIndependentAquarius; 11th July 2012 at 13:50.

  2. #2
    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: Google Earth with QGLWidget, or QWebView?

    You can use whatever solution you like. QWebView is a web browser (2D, basically), QGLWidget allows you to render 3D content. I don't see what cached/uncached/whatever content has to do with it. If you want a flat view then you can use QWebView or QGraphicsView or QWidget or whatever you like, if you want a spherical view then QGLWidget seems the obvious choice if you can do proper UV mapping of the sphere.
    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 (11th July 2012)

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

    Default Re: Google Earth with QGLWidget, or QWebView?

    Quote Originally Posted by wysota View Post
    If you want a flat view then you can use QWebView or QGraphicsView or QWidget or whatever you like, if you want a spherical view then QGLWidget seems the obvious choice if you can do proper UV mapping of the sphere.
    That's very informative. Thanks for replying.

    Does the following link mean that QGLWidget can be safely compatible with Google Earth (Qt3)?
    http://doc.qt.nokia.com/4.7-snapshot/qglwidget-qt3.html

  5. #4
    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: Google Earth with QGLWidget, or QWebView?

    No. I already told you you can't mix Qt3 and Qt4 code. If you want to use QGLWidget, Qt3 has it as well.
    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. The following user says thank you to wysota for this useful post:

    TheIndependentAquarius (11th July 2012)

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

    Default Re: Google Earth with QGLWidget, or QWebView?

    Quote Originally Posted by wysota View Post
    No. I already told you you can't mix Qt3 and Qt4 code. If you want to use QGLWidget, Qt3 has it as well.
    Helpful as always.

    So, this means finally that if I install Qt3, and then I will be able to safely use QGLWidget with Earth?
    Is my understanding correct?

  8. #6
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Google Earth with QGLWidget, or QWebView?

    Why not Qt4? is there a restriction on the Qt version?
    Doesn't sound like it...
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  9. #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: Google Earth with QGLWidget, or QWebView?

    Quote Originally Posted by high_flyer View Post
    Why not Qt4? is there a restriction on the Qt version?
    Doesn't sound like it...
    Google Earth still uses Qt3, AFAIK.
    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. Google Earth/Maps and QWebView API
    By TheIndependentAquarius in forum Qt Programming
    Replies: 5
    Last Post: 30th June 2012, 09:08
  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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.