Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Custom File Explorer

Custom File Explorer

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 1.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sapym
    wrote on last edited by
    #1

    Hello everyone,

    I'm trying to develop my own file browser.

    It should display only certain type of files according to its path and file name and a little bit of information about those files.

    So I used a QSortFilterProxyModel in order to filter the folders and files that should or should not be displayed. (folder name should have a typical name etc...)

    Then I created a derivation of QFileSystemModel in order to add information to each entry of the tree view.

    The problem is that it is incredibly slow as soon as the folder has many files in it (about 100).

    Am I taking the problem the wrong way ?

    All the best.

    VRoninV 1 Reply Last reply
    0
    • S sapym

      Hello everyone,

      I'm trying to develop my own file browser.

      It should display only certain type of files according to its path and file name and a little bit of information about those files.

      So I used a QSortFilterProxyModel in order to filter the folders and files that should or should not be displayed. (folder name should have a typical name etc...)

      Then I created a derivation of QFileSystemModel in order to add information to each entry of the tree view.

      The problem is that it is incredibly slow as soon as the folder has many files in it (about 100).

      Am I taking the problem the wrong way ?

      All the best.

      VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      @sapym said in Custom File Explorer:

      filter the folders and files that should or should not be displayed. (folder name should have a typical name etc...)

      Something like http://doc.qt.io/qt-5/qfilesystemmodel.html#setNameFilters?

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sapym
        wrote on last edited by
        #3

        Not exactly..something more elaborated...

        for example :
        folder after root should be specially named (for example name should finish by .SET (settings) ) and the folder in settings folder should be *.GRP ...and the files in the *.GRP be of .dat extension or *.stg

        To resume :
        Folder *.SET
        |-->Folder *.GRP
        |-->File *.dat
        |-->File *.stg
        |-->Folder *.GRP
        |-->File *.dat
        |-->File *.dat

        So each item should carry its type ( settings ; group ; data or stg file) and will have a special icon.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved