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

Document that the file url is different on windows and linux

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Quick: Dialogs
    • Labels:
      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

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            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