Re: [Interest] QIcon/QFile file extension matching

2014-03-03 Thread Jonathan Greig
Loading pixmaps into QIcon without an extension worked gloriously in Qt4.6 and in Qt4.7 it changed and required that you supply the extension. I have no idea why it was changed but it definitely changed between those two versions. On Tue, Mar 4, 2014 at 12:41 AM, Damian Ivanov wrote: > Hi all, >

[Interest] QIcon/QFile file extension matching

2014-03-03 Thread Damian Ivanov
Hi all, Is there a simple way to accept any file extension I try QString fileNameString = "/usr/share/pixmaps/"+df.iconName()+".png"; QFile fileName(fileNameString); if (fileName.exists()) return QIcon(fileNameString); and do this check for every extension, what I'd