Code: Select all
try {
QString s = QDir::toNativeSeparators(fileName.toUtf8());
std::string srcFilename = s.toLatin1();
img.read(srcFilename);
img.magick("PICT");
}
catch(std::exception &error_ )
{
QMessageBox::warning( 0, QObject::tr("Pict Read Error!!"), QString(error_.what()) );
}
The error string is this one:
Code: Select all
Magick: NoDecodeDelegateForThisImageFormat "C:\input.pict" @ error/constitute.c/ReadImage/533