Results 1 to 3 of 3

Thread: how to display files of a directory in a listview

  1. #1
    Join Date
    Feb 2013
    Location
    Banzart
    Posts
    54
    Thanks
    17
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default how to display files of a directory in a listview

    hello

    Is there a way to display files of a specified directory in a listview.
    Files extension is .ini so what i intend to do is to let the user load a configuration .
    Could you give me an example ?
    Last edited by sliverTwist; 1st April 2013 at 16:25.
    Sliver_Twist

  2. #2
    Join Date
    Aug 2007
    Posts
    244
    Thanks
    42
    Thanked 8 Times in 8 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: how to display files of a directory in a listview

    read doc about QFileSystemModel
    Giuseppe CalÃ

  3. #3
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,555
    Thanks
    13
    Thanked 1,581 Times in 1,510 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: how to display files of a directory in a listview

    Quote Originally Posted by sliverTwist View Post
    what i intend to do is to let the user load a configuration .
    You probably want to at least look at QFileDialog::getOpenFileName() before reinventing a wheel.

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

    sliverTwist (3rd April 2013)

Similar Threads

  1. Replies: 3
    Last Post: 2nd September 2012, 04:29
  2. Replies: 3
    Last Post: 21st July 2012, 15:20
  3. display a directory using qtreewidget
    By kamlmish in forum Newbie
    Replies: 2
    Last Post: 19th December 2010, 13:37
  4. Display files of a Directory
    By mansu in forum Qt Programming
    Replies: 2
    Last Post: 8th March 2009, 16:08
  5. directory and files
    By rmagro in forum Qt Programming
    Replies: 2
    Last Post: 16th September 2008, 14:40

Tags for this Thread

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.