Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. How to place google maps on qt widget
Forum Updated to NodeBB v4.3 + New Features

How to place google maps on qt widget

Scheduled Pinned Locked Moved Unsolved Qt WebKit
4 Posts 4 Posters 1.4k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Son DongSeong
    wrote on 27 Jun 2019, 02:38 last edited by
    #1

    I am programming to show two locations on the map in QT.
    I am going to use Qt Kit 5.13.0

    However, I do not know how to put google map in widget of qt
    When I used qt 5.5, I was able to implement it using QWebView (qmake : QT+= webkitwidgets)

    Qt 5.13.0 can not use QWebView. The message says Unknown module (s) in QT: webkitwidgets. I do not know why

    I want to use google maps in qt5.13.0. Can you tell me if there are any available methods or sample programs?

    J 1 Reply Last reply 27 Jun 2019, 05:55
    0
    • S Son DongSeong
      27 Jun 2019, 02:38

      I am programming to show two locations on the map in QT.
      I am going to use Qt Kit 5.13.0

      However, I do not know how to put google map in widget of qt
      When I used qt 5.5, I was able to implement it using QWebView (qmake : QT+= webkitwidgets)

      Qt 5.13.0 can not use QWebView. The message says Unknown module (s) in QT: webkitwidgets. I do not know why

      I want to use google maps in qt5.13.0. Can you tell me if there are any available methods or sample programs?

      J Offline
      J Offline
      JKSH
      Moderators
      wrote on 27 Jun 2019, 05:55 last edited by
      #2

      @Son-DongSeong said in How to place google maps on qt widget:

      Qt 5.13.0 can not use QWebView. The message says Unknown module (s) in QT: webkitwidgets. I do not know why

      Because Qt WebKit was deprecated and removed from Qt 5.6.

      Qt 5.13 uses Qt WebEngine: https://doc.qt.io/qt-5/qtwebengine-index.html

      I want to use google maps in qt5.13.0. Can you tell me if there are any available methods or sample programs?

      You can replace QWebView with QWebEngineView.

      Alternatively, use the Qt Location module: https://doc.qt.io/qt-5/qtlocation-minimal-map-example.html It does not use Google Maps, but you can select a different map provider. Just remember to follow their terms and conditions (for example, OpenStreetMap requires you to set a unique User Agent in your app)

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      1
      • K Offline
        K Offline
        Konstantin Tokarev
        wrote on 27 Jun 2019, 10:34 last edited by Konstantin Tokarev
        #3

        Or you can get binaries of latest QtWebKit for Qt 5.13.0 from http://download.qt.io/snapshots/ci/qtwebkit/5.212/1561566461/qtwebkit/

        A 1 Reply Last reply 26 Jul 2019, 09:31
        1
        • K Konstantin Tokarev
          27 Jun 2019, 10:34

          Or you can get binaries of latest QtWebKit for Qt 5.13.0 from http://download.qt.io/snapshots/ci/qtwebkit/5.212/1561566461/qtwebkit/

          A Offline
          A Offline
          angilina009
          Banned
          wrote on 26 Jul 2019, 09:31 last edited by
          #4
          This post is deleted!
          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved