Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-121766

GeoJsonViewer example cannot open files.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.7.0 Beta3, 6.8.0 FF
    • 6.7
    • Location
    • None
    • 106fc77a5 (dev), 9ef382afb (6.7)

    Description

      The GeoJsonViewer cannot open files with the file dialog.

      The file dialog returns, e.g.: QUrl("file:///C:/Users/Matti/qt5/qtlocation/examples/location/geojson_viewer/data/10-countries.json")
      and url.path() transforms it to: "/C:/Users/Matti/qt5/qtlocation/examples/location/geojson_viewer/data/10-countries.json"
      QFile cannot open this path because of the leading "/".

      A workaround is to use url.toLocalFile(), but maybe we should make sure fileDialog -> QFile(url.path()) works. 

      Attachments

        For Gerrit Dashboard: QTBUG-121766
        # Subject Branch Project Status CR V

        Activity

          People

            matthias_rauter Matthias Rauter
            matthias_rauter Matthias Rauter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes