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 <damianator...@gmail.com>wrote: > 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 like is a simple way > to accept any file extension. > > > Thanks in advance > Damian > _______________________________________________ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest >
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest