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

QUrl::path() prepends a "/" to file URLs in windows.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.6.3, 5.10.0
    • Core: URL Handling
    • None
    • Windows

    Description

      To reproduce : copy a file from windows file explorer and paste it into a widget that extracts the URL path with the following commands:

      QClipboard *clipboard = QGuiApplication::clipboard();
      const QMimeData *mime = clipboard->mimeData();
      QString path = mime->urls().first().path()
      

      the result is something like this :

       

      /C:/folder/file.txt
      

      Instead of the following expected result :

      C:/folder/file.txt
      

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            quentinv Quentin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes