Qt读取图片有问题-应以二进制文件读取
- 通过二进制图区QImage
bool GetImg(QImage &pix, QString &strFileName)
{
QFile file(strFileName);
char *m_pBuff = NULL;
int m_nBuffSize;
if (!file.open(QIODevice::ReadOnly))
{
QMessageBox::information(NULL, tr("Warning"), tr("File open fail."));
return false;