I used the class Qtwain for scaned image. scans but i cant see the image for this:

what is this??

QPixmap::fromWinHBITMAP(), failed to get bitmap info ()

how to fix that problem??

my code

bool QTwain::save(QString dir)
{
return QPixmap::fromWinHBITMAP(m_hBitmap).toImage().save( dir,"jpg");
}