[Qt-interest] QFileSystemModel some questions
Alexis Ménard
alexis.menard at trolltech.com
Fri Apr 3 20:47:09 CEST 2009
On Friday 03 April 2009 19:56:14 Alex Custov wrote:
> Hi.
>
> I'd like to try QFileSystemModel with different views. It seems to
> work, but it misses several important features. Well,
>
> 1) How to show system-wide MIME icons for files? Currently all of them
> are blank. Directory icons seems to work, but all files have blank
> icons.
If you want to be able to see that then you can create you own
fileiconprovider that do this job. Be carefull of performance.
You can set it to the model using setFileIconProvider. On Windows and Mac we
query the OS to get the icon. On Linux not so we display the default blank
icon.
> 2) How to always show directories first (say in QTreeView)?
It is always like that if you use the default sorting. At least in 4.5.0, i am
sure.
> 3) How to use 48x48 icons in QListView with QFileSystemModel? I set
> "iconSize" to 48x48 and "gridSize" to 60x60, but the icons are still
> 16x16 (the grid became bigger, but MIME icons are still 16x16).
>
Works here if i set the iconSize on the view directly on the QFileDialog
(internally :)) it works perfectly so something wrong happen in your QListView
that makes the problem happen
> Thanks in advance!
>
> --
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
--
Alexis Ménard
Software Engineer, Widgets Team 1
Qt Software, Nokia Norge AS, Sandakerveien 116, 0484 Oslo, Norway
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090403/a153e1e1/attachment.html
More information about the Qt-interest-old
mailing list