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

Create an example using QFileDialog to display a "virtual" drive

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Out of scope
    • P3: Somewhat important
    • Some future release
    • None
    • Documentation
    • None

    Description

      QFileDialog::setProxy() can be used to set a custom proxy model on the file dialog:

      "Sets the model for the views to the given proxyModel. This is useful if you want to modify the underlying model; for example, to add columns, filter data or add drives."

      However, using a proxy model to create a virtual drive entry is not quite trivial. Create an example on how to do this.

      Note that an alternative may be to use QFileDialog::setSidebarUrls() to add a virtual drive, and provide a custom file engine for that file.

      Attachments

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

        Activity

          People

            jerome.pasion Jerome Pasion
            sthomass Stian Sandvik Thomassen (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes