[Interest] QIcon/QFile file extension matching

Damian Ivanov damianatorrpm at gmail.com
Tue Mar 4 07:41:00 CET 2014


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



More information about the Interest mailing list