Results 1 to 8 of 8

Thread: QFileIconProvider: available sizes only up to 32x32?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2012
    Location
    Dortmund, Germany
    Posts
    159
    Thanks
    69
    Thanked 10 Times in 8 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default QFileIconProvider: available sizes only up to 32x32?

    Hi,
    I am using the QFileIconProvider this way:

    Qt Code:
    1. QFileInfo info = QFileInfo(myFileName);
    2. QIcon icon = provider.icon(info);
    3. qDebug()<<"availableSizes: "<<icon.availableSizes();
    To copy to clipboard, switch view to plain text mode 
    (truth be told I am actually meddling around with the SimpleFileBrowser example, so inside the requestPixmap() method I use the m_provider member variable instead of defining the provider for each file)

    But, regardless of which file I examine with this, I always get
    availableSizes: (QSize(16, 16), QSize(32, 32))
    as the only available resolutions. Is it actually true, that there are no larger Icons available or am I doing something wong?
    (Windows 10, Qt 5.7.1, MinGw 5.3.0)

    Any idea on how to access larger icons?
    I've searched around in vain, there also doesn't seem to be an open QtBug in relation with 5.7.x and QFileIconProvider.
    What am I missing?
    Last edited by sedi; 26th December 2016 at 16:09.

Similar Threads

  1. QFileIconProvider and QFileDialog
    By hakermania in forum Newbie
    Replies: 1
    Last Post: 27th October 2011, 18:45
  2. QFileIconProvider problem
    By rittchat in forum Qt Programming
    Replies: 5
    Last Post: 29th November 2010, 04:02
  3. Getting mulitiple size file icons with QFileIconProvider
    By gmat4321 in forum Qt Programming
    Replies: 1
    Last Post: 19th March 2009, 13:41
  4. Replies: 4
    Last Post: 7th January 2009, 10:13
  5. Replies: 9
    Last Post: 29th March 2007, 13:41

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.