Results 1 to 2 of 2

Thread: adding files to QFileSystemModel

  1. #1
    Join Date
    Jul 2012
    Posts
    1
    Thanks
    1
    Qt products
    Qt/Embedded
    Platforms
    Windows

    Default adding files to QFileSystemModel

    Hi. I need to do a search on local drivers for image files and display them in a QlistView as thumbnails.
    The problem is that I can't put the searched files into one model to put it in QlistView.
    Is it posible to create own empty model, and add file by file to it ?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: adding files to QFileSystemModel

    Is it posible to create own empty model, and add file by file to it ?
    Yes... roll your own, use a QStandardItemModel, or use a QListWidget instead

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

    gluchu (11th July 2012)

Similar Threads

  1. Qt Creator Adding files to cmake project
    By xadian in forum Qt Tools
    Replies: 1
    Last Post: 1st April 2013, 16:18
  2. how can i list of files to QFileSystemModel?
    By aurora in forum Qt Programming
    Replies: 2
    Last Post: 13th February 2012, 08:28
  3. Select all files [QTableView et QFileSystemModel]
    By snooker9 in forum Qt Programming
    Replies: 0
    Last Post: 23rd December 2011, 09:17
  4. visual studio project files - adding extra files
    By luf in forum Qt Programming
    Replies: 3
    Last Post: 13th June 2008, 22:05
  5. Adding files to QIcon array members
    By anafor2004 in forum Newbie
    Replies: 1
    Last Post: 26th January 2008, 16:46

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.