Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How: QT Positioning - showCurrentLocation Button??

How: QT Positioning - showCurrentLocation Button??

Scheduled Pinned Locked Moved Unsolved General and Desktop
qtpositioningesrigeolocationlocation
2 Posts 2 Posters 542 Views
  • 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.
  • Z Offline
    Z Offline
    zeethree50
    wrote on 12 Feb 2019, 08:04 last edited by zeethree50 2 Dec 2019, 08:05
    #1

    Hello,

    I am looking to get some general advice on how to solve this problem I'm interested in.

    I have a program that has a GUI that displays an Online Base Map from the Esri SDK for QT. It also gives you the option to use offline tiled layered maps.

    I've looked over some of the code examples provided by QT but they seem a bit too much for what I need and I'm still having a hard time how to approach the initial part.

    All I want to do is:
    Press a button called "My Location" on the GUI that will first call some source/API that can detect my location, then I would just do some stuff with the data, and finally reload the map given the new coordinates.

    The only problem I have is how get the coordinates of my current location. If I can solve this part, I can do the rest.

    I've been looking at the QTPositioning Library, and looking deeper into certain functions such as ~QGeoPositionInfoSource(), QGeoPositionInfoSource::createDefaultSource() , and looking at examples.

    What all is needed to get my current location?
    What are these "plug-ins or sources" they speak of that I need to accomplish this if I'm writing this using Ubuntu on a Desktop.

    I would say I'm just having a hard time understanding what plug-in/source are needed to do this. I would appreciate any guidance.

    Cheers,
    Z

    P 1 Reply Last reply 13 Feb 2019, 13:47
    0
    • Z zeethree50
      12 Feb 2019, 08:04

      Hello,

      I am looking to get some general advice on how to solve this problem I'm interested in.

      I have a program that has a GUI that displays an Online Base Map from the Esri SDK for QT. It also gives you the option to use offline tiled layered maps.

      I've looked over some of the code examples provided by QT but they seem a bit too much for what I need and I'm still having a hard time how to approach the initial part.

      All I want to do is:
      Press a button called "My Location" on the GUI that will first call some source/API that can detect my location, then I would just do some stuff with the data, and finally reload the map given the new coordinates.

      The only problem I have is how get the coordinates of my current location. If I can solve this part, I can do the rest.

      I've been looking at the QTPositioning Library, and looking deeper into certain functions such as ~QGeoPositionInfoSource(), QGeoPositionInfoSource::createDefaultSource() , and looking at examples.

      What all is needed to get my current location?
      What are these "plug-ins or sources" they speak of that I need to accomplish this if I'm writing this using Ubuntu on a Desktop.

      I would say I'm just having a hard time understanding what plug-in/source are needed to do this. I would appreciate any guidance.

      Cheers,
      Z

      P Offline
      P Offline
      Pablo J. Rogina
      wrote on 13 Feb 2019, 13:47 last edited by
      #2

      @zeethree50 you may want to take a look at this weather example regarding how they use the device's GPS to know current position...

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      1

      2/2

      13 Feb 2019, 13:47

      • Login

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