Results 1 to 2 of 2

Thread: Getting mulitiple size file icons with QFileIconProvider

  1. #1
    Join Date
    Aug 2008
    Posts
    24
    Thanks
    2
    Thanked 1 Time in 1 Post

    Default Getting mulitiple size file icons with QFileIconProvider

    Does anyone know how to get multiple size icons with the QFileIconProvider?

    I am iterating through a directory getting the file list and icons. I want to be able to show the file icon at different sizes. On Windows Vista you have very large icons (256,256), these are PNG format. My understanding is that icons can have muiltiple sizes defined within icon the file.

    When I use the QFileIconProvider the largest icon size I get is 32 x 32. I assume I only get this one size. How would I get the larger icons? And how can I iterate through the icon to know what sizes I have available to display?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Getting mulitiple size file icons with QFileIconProvider

    I'd say you have to provide your own icon provider object that would return QIcon objects with multiple pixmaps.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. How to load icons from resource file
    By joseph in forum Qt Programming
    Replies: 7
    Last Post: 25th June 2012, 08:00
  2. Replies: 4
    Last Post: 7th January 2009, 11:13
  3. Replies: 2
    Last Post: 5th June 2008, 13:42
  4. How to set default icons of different file types?
    By merry in forum Qt Programming
    Replies: 3
    Last Post: 2nd June 2008, 16:24
  5. is it possible to reduce the static exe file size?
    By mismael85 in forum Installation and Deployment
    Replies: 1
    Last Post: 17th April 2008, 01:18

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.