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. How can i list of files to QFileSystemModel?
Forum Updated to NodeBB v4.3 + New Features

How can i list of files to QFileSystemModel?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 2.4k Views 1 Watching
  • 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.
  • A Offline
    A Offline
    aurora
    wrote on last edited by
    #1

    I am using QFileSystemModel, with list view...Its working fine, displaying all the files in a particular directory...
    But now i want to display a particular set of files, (not all the files in that folder, i cant set filter)...
    I have a list of all those files....how can i display them in that list view?

    1 Reply Last reply
    0
    • F Offline
      F Offline
      fluca1978
      wrote on last edited by
      #2

      Uhm...seems to me QFileSystemModel is not the way to go if you need a very custom file filtering. You should try implementing your own model to list only files that make sense to you.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        aurora
        wrote on last edited by
        #3

        Thank u ....i used QFileSystemModel::setNameFilters (QStringList)
        But problem is that....model still contains the all the entries(unfiltered entries are disabled).....cant i able to display only filtered entries?

        1 Reply Last reply
        0
        • D Offline
          D Offline
          domzique
          wrote on last edited by
          #4

          Hi aurora,
          Did you find a way to do what you want ?
          I also want to do like but I can't find a solution...

          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