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

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

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes