Results 1 to 2 of 2

Thread: Directory View

  1. #1
    Join Date
    Mar 2010
    Posts
    54
    Qt products
    Qt/Embedded
    Platforms
    Symbian S60

    Default Directory View

    Hi
    I have a small query where I need to display a filesystem , showing the subdirectories , without showing the contents of the directory and the subdirectories.

    eg
    Qt Code:
    1. Home
    2. Documents
    3. A.doc
    4. B.doc
    5. C.doc
    6. Pictures
    7. abc.jpg
    8. def.png
    9. Music
    10. bryan.mp3
    11. ghulam.mp3
    To copy to clipboard, switch view to plain text mode 

    In the above pictures, I should be able to display the subdirectories (Documents , Pictures and Music) but the files under them should be hidden

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Directory View

    Have a look at QFileSystemModel or QDirModel and their setFilter() function.

Similar Threads

  1. How to switch view in sliding/moving new view from right of device to the left
    By curiouswalker in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 16th November 2010, 11:55
  2. Flicker while changing from one view to another view
    By sujan.dasmahapatra in forum Qt Programming
    Replies: 1
    Last Post: 13th October 2010, 15:11
  3. Updating directory view in a QListView
    By Cruz in forum Qt Programming
    Replies: 1
    Last Post: 7th February 2009, 23:48
  4. Replies: 5
    Last Post: 21st November 2007, 20:38
  5. Model-view: Creating a custom view
    By taboom in forum Qt Programming
    Replies: 5
    Last Post: 17th August 2007, 20:36

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.