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

FolderListModel should have a permissions role

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.10
    • None

      From the docs:

      Components access names and paths via the following roles:

      fileName (string)
      filePath (string)
      fileUrl (url) (since Qt 5.15)
      fileBaseName (string)
      fileSuffix (string)
      fileSize (qlonglong)
      fileModified (date)
      fileAccessed (date)
      fileIsDir (bool)

      I found a use case for wanting to know whether the file is writeable.  So I suppose we could expose QFileDevice::Permissions as a qml-accessible flags role, or else have an invokable hasPermission(flg) or something like that.  There should be a nice way...

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

            srutledg Shawn Rutledge
            srutledg Shawn Rutledge
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes