Results 1 to 9 of 9

Thread: Find Files QFileSystemModel

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts

    Default Re: Find Files QFileSystemModel

    What do you get and what do you expect to see?

    Cheers,
    _

  2. #2
    Join Date
    Dec 2014
    Posts
    49
    Qt products
    Qt5 PyQt3 PyQt4
    Platforms
    Windows
    Thanks
    6
    Thanked 3 Times in 3 Posts

    Default Re: Find Files QFileSystemModel

    I get Scenes and Textures folder displaying in the ListView, however, i expect/want Level_01.xml to be only displayed in the ListView.

    I'm thinking i need to go the seperate model for search results and populate the list view with it when search is enabled.

  3. #3
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts

    Default Re: Find Files QFileSystemModel

    Hmm, does it work if your filter does not except the directories?

    But yes, I would have always gone for a special purpose model, as suggested in #4
    Cheers,
    _

  4. The following user says thank you to anda_skoa for this useful post:

    NIteLordz (8th September 2016)

  5. #4
    Join Date
    Dec 2014
    Posts
    49
    Qt products
    Qt5 PyQt3 PyQt4
    Platforms
    Windows
    Thanks
    6
    Thanked 3 Times in 3 Posts

    Default Re: Find Files QFileSystemModel

    I wound up implementing the custom model, and it works as i expected.

    Thanks for the help!

Similar Threads

  1. Failing to SetFilter of QFileSystemModel for .mp3/.avi files
    By owais_blore in forum Qt Programming
    Replies: 0
    Last Post: 20th November 2012, 06:44
  2. Rename a lot of files by QFile and QFileSystemModel
    By stereoMatching in forum Newbie
    Replies: 1
    Last Post: 25th July 2012, 18:55
  3. adding files to QFileSystemModel
    By gluchu in forum Newbie
    Replies: 1
    Last Post: 11th July 2012, 00:25
  4. how can i list of files to QFileSystemModel?
    By aurora in forum Qt Programming
    Replies: 2
    Last Post: 13th February 2012, 07:28
  5. Select all files [QTableView et QFileSystemModel]
    By snooker9 in forum Qt Programming
    Replies: 0
    Last Post: 23rd December 2011, 08:17

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.