[Qt-interest] QFileIconProvider not supporting many icons on Linux

piotr maliński riklaunim at gmail.com
Fri Jan 9 12:51:55 CET 2009


Good to see that it is open and "important" :) XDG standard are used by most
window managers and connected apps (KDE4, GNOME, LXDE, newer XFCE) and
implementing XDG standards for icons would cover Linux and Unix systems...

A side functionality would be detecting what application could open such
file (QDirModel). If for example on Mac the QDirModel and friends uses
smultron icon for text files - then it's very close to get the application/s
that can open such file. And second related thing - file MIME detection in a
cross platform way. I use Python and it's contentypes is limited (uses lists
that map file extension to mime). On Linux/Unix I use pyxdg that can detect
mime using also magic numbers test (but it doesn't work on Windows and OS
X). So if the icon is suggested - somewhere close must be the real mimetype
of the file :)
No real cross platform desktop standards/libs are the problem

2009/1/9 Denis Dzyubenko <denis.dzyubenko at trolltech.com>

> piotr maliński wrote:
>
>> I've posted few screenshots of QListWidget with QDirModel on qtcentre.org<
>> http://qtcentre.org>:
>>
>> http://www.qtcentre.org/forum/f-qt-programming-2/t-qfileiconprovider-and-os-support-not-using-all-icons-on-linux-17873.html
>> As you can see on Linux only (almost) folder and "text file" icon are
>> used. For mac and windows - AFAIK full native iconset is used. The question
>> is can Qt support (or why it doesn't/can't) iconsets that follow XDG
>> standards for broader set of filetypes/mimes? It got folder and text file
>> icon from the used icon theme.
>>
>
> sounds like a good feature request. Searching through the task tracker
> shows that there is already a task for it:
> http://trolltech.com/developer/task-tracker/index_html?method=entry&id=213454
>
> --
> Denis Dzyubenko
> Software Engineer
> Nokia, Qt Software
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090109/68b923b9/attachment.html 


More information about the Qt-interest-old mailing list