[Qt-interest] Regarding QFileIconProvider
François KUBLER
francois at kubler.org
Fri Aug 6 14:42:36 CEST 2010
Hi list,
This was originally posted in a long mail. As André said, it's much more
smarter to seperate each topic.
So, here we go...
Just to makes things easier, I'm writing a small app with PyQt4 that looks
like this : http://francois.kubler.org/images/projets/z3nb0x_movies.png
As you can see on the linked screenshot, the list is a list of movies, and
I'd like to provide covers. I've written a small QFileIconProvider
subclass to do this. It simply gets the name of the file, and look if
there is a cover for it in a specified directory.
Is this a good choice/the right way to do that ?
In this class, I also specify that icons should be resized to a maximum of
32x32 pixmap. But, as you can see, it seems to be ignored. The items on the
list are much more bigger, and in fact, their size corresponds to what I'm
setting in my stylesheet (which is great). But I would have expected the
icons to be 32x32 and then resized to the bigger size set by the
stylesheet. The quality of the icons tends to prove I'm wrong.
So, how does the QFileIconProvider work ?
Thanks a lot,
--
François
More information about the Qt-interest-old
mailing list