Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED ]Reg : Need some help QFileSystemModel
Forum Updated to NodeBB v4.3 + New Features

[SOLVED ]Reg : Need some help QFileSystemModel

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 852 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    roahanramesh
    wrote on last edited by
    #1

    Hello
    I need to create a File System Model that will show me as icons ( Refer Large Icons / Small Icons view - Windows 7 ) to show me content of file (image files). Please provide me a pointer on how to proceed.

    Thanks.

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jan-Willem
      wrote on last edited by
      #2

      The Dir View Example uses the QFileSystemModel class (at leas in Qt5.3).
      With a QListView you have a listview and an iconview, the sizes you can set with setIconSize(const QSize & size).

      For the thumnail-part you could get a list of supported images, create thumbnails which you can add to a QPixmapCache and draw them with a delegate.

      1 Reply Last reply
      0
      • R Offline
        R Offline
        roahanramesh
        wrote on last edited by
        #3

        Thanks for the help. I went for a QFileDialog instead.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved