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

Document that the file url is different on windows and linux

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • None
    • Quick: Dialogs
    • None

    Description

      The FileDialog in the QtQuick.Dialogs package has a property fileUrl containing the selected file by the user. On Windows the property has a value of file:///... and on linux file://.... So you have to handle this different on different operation systems, but this is not documented anywhere. A note saying that the 'prefix' is different on windows and linux would be cool.

      I see that there are the functions pathToUrl and urlToPath which do the right thing, but they are not documented!
      A documentation for the function addSelection would also be nice.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            autoantwort autoantwort
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes