Results 1 to 15 of 15

Thread: QListView not displaying all directory files

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2008
    Posts
    306
    Thanks
    6
    Thanked 9 Times in 8 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Talking QListView not displaying all directory files

    Im settings the QListView's index:
    Qt Code:
    1. QString directory = "C:\\Users\\Username\\Desktop";
    2. ui->list->setRootIndex(model.index(directory));
    To copy to clipboard, switch view to plain text mode 

    But it displays only 101 items as opposed to 143 showing on explorer.exe(I know, Im messy ....) Any idea as to why?

    Update: I found out that the files not displayed are Windows shortcut files. Including Recycle Bin, My Computer & others.
    Last edited by been_1990; 5th May 2009 at 04:23.

Similar Threads

  1. Replies: 0
    Last Post: 19th February 2009, 14:32
  2. Updating directory view in a QListView
    By Cruz in forum Qt Programming
    Replies: 1
    Last Post: 7th February 2009, 23:48
  3. directory and files
    By rmagro in forum Qt Programming
    Replies: 2
    Last Post: 16th September 2008, 13:40
  4. [QT4] Counting files in a directory (Linux)
    By ucntcme in forum Qt Programming
    Replies: 2
    Last Post: 24th July 2007, 22:59
  5. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 15:21

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.