dima72
22nd July 2010, 13:30
Hello,
please help to solve, QPixmap::grabWindow does work on some XP machines and does not
work on the others,meaning i get empty bytes array
void screenshoot(QByteArray *p_bar)
{
QBuffer a_Buf;
QPixmap originalPixmap;
originalPixmap = QPixmap::grabWindow(QApplication::desktop()->winId());
originalPixmap.save(&a_Buf, "jpg");
*p_bar = a_Buf.buffer();
}
Qt4, MSVW 2008, WinXP, project compiled in release
thanks in advance,
dima
please help to solve, QPixmap::grabWindow does work on some XP machines and does not
work on the others,meaning i get empty bytes array
void screenshoot(QByteArray *p_bar)
{
QBuffer a_Buf;
QPixmap originalPixmap;
originalPixmap = QPixmap::grabWindow(QApplication::desktop()->winId());
originalPixmap.save(&a_Buf, "jpg");
*p_bar = a_Buf.buffer();
}
Qt4, MSVW 2008, WinXP, project compiled in release
thanks in advance,
dima