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

Expose QFileInfo as a FileInfo singleton in QML

    XMLWordPrintable

Details

    Description

      So that you can do stuff like this:

      readonly property string qmlPath: "qrc:/qml/entities/" + model.name + ".qml"
      
      source: FileInfo.fileExists(qmlPath) ? qmlPath : someOtherPath
      

      Attachments

        Issue Links

          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
              mitch_curtis Mitch Curtis
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes