Results 1 to 6 of 6

Thread: How to make a file browser like explorer?

  1. #1
    Join Date
    Aug 2010
    Posts
    8
    Platforms
    MacOS X

    Question How to make a file browser like explorer?

    Hello,

    I would like to make file browser widget exactly like Windows Explorer, with icons, thumbnails preview etc.

    Which is the best way to achieve this?

    In qt I only found the tree view explorer like sample so far... I would like something similar to QFileDialog content window.

    Thank You,
    Alex

  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: How to make a file browser like explorer?

    You have to compose the window yourself containing: QTreeView, QTableView, And QLabel, QComboBox etc.

  3. #3
    Join Date
    Aug 2010
    Posts
    8
    Platforms
    MacOS X

    Default Re: How to make a file browser like explorer?

    That socks...

  4. #4
    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: How to make a file browser like explorer?

    Quote Originally Posted by alexivanov91 View Post
    That socks...
    Do you mean rocks or sucks? If the later then why? Simple put the widgets in a layout have a QFileSystemModel in the background and all is fine. Even for an unexperienced user it is doable within - let's say - three hours.

  5. #5
    Join Date
    Aug 2010
    Posts
    8
    Platforms
    MacOS X

    Default Re: How to make a file browser like explorer?

    I saw indeed that setting QFileSystemModel is pretty straight-forward. My real problem is generating icon previews the way explorer does in "thumbnails" mode. I've tried this in QListVIew with IconMode set, but this wasn't enough...

  6. #6
    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: How to make a file browser like explorer?

    No, for that you have to provide your own delegate (QItemDelegate/QStyledItemDelegate) which loads the loads the image and displays it.

Similar Threads

  1. qmake doesn't make a 'make' file
    By elyness in forum Installation and Deployment
    Replies: 1
    Last Post: 4th August 2010, 15:21
  2. Qt Creator Adding a Help File (for the Property Browser)
    By BobTheProg in forum Qt Tools
    Replies: 5
    Last Post: 29th January 2010, 23:44
  3. File browser
    By been_1990 in forum Qt Programming
    Replies: 0
    Last Post: 3rd November 2009, 23:39
  4. file-browser problem
    By sudheer in forum Qt Tools
    Replies: 2
    Last Post: 15th November 2007, 05:36
  5. File browser
    By jp in forum Qt Programming
    Replies: 9
    Last Post: 19th July 2006, 02: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.