On jeudi 9 février 2017 00:23:10 CET D. Michael McIntyre wrote:
> Qt5 file dialogs look like the attachment.
Ah. Is it only .rg files that QFileDialog doesn't show, or any file?
(e.g. when filtering for "*" and navigating other directories, do icons show
up?)
Looking at the Qt 5 code, it seems to use QStyle::standardIcon(SP_FileIcon),
for all files. Which, in QCommonStyle, either:
1) loads the icon from the icon theme using
QIcon::fromTheme("text-x-generic")
but only if QApplication::desktopSettingsAware() is true
2) uses the builtin icon ":/qt-project.org/styles/commonstyle/images/
file-16.png" from qt itself.
Can you check what `kiconfinder5 text-x-generic` returns?
(for me it returns a SVG, but Qt has its own lookup code which won't use SVGs,
maybe that is a problem...)
Can you check the value of QApplication::desktopSettingsAware() in main.cpp
(after creating the qapp) ?
If you have a self-compiled Qt you could even just step into
QFileIconProviderPrivate::getIcon and see what happens from there.
--
David Faure, [email protected], http://www.davidfaure.fr
Working on KDE Frameworks 5
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel