如何将IStream的内容复制到QPixmap上面?
IStream * pStream = NULL;
HRESULT hr = pstg->OpenStream(pszName, NULL, STGM_READ | STGM_SHARE_EXCLUSIVE, NULL, &pStream);
if ( FAILED(hr) ) { return false; }
STATSTG statstg;
pStream->Stat(&statstg, STATFLAG_NONAME);
QScopedPointer<quint16> imageData(new quint16[statstg.cbSize.QuadPart]);
ULONG cbRead=0;
pStream->Read(imageData.data(), statstg.cbSize.QuadPart, &cbRead);
bool bRet = pPixmap->loadFromData((const uchar*)imageData.data(), statstg.cbSize.QuadPart);