Skip to main content

Posts

Showing posts from May, 2011

Capture full screen in muti-screens Windows XP by Qt

I've just want to put some small solution here, I've spend few hours to find out why same procedure works fine in Linux and Mac OS,but always returns only first screen image in Windows XP. This is recommended use: QPixmap::grabWindow(QApplication::desktop()->winId()); And in windows XP it always capture only 1st screen, so this hack solution how same overloaded procedure works fine : QWidget *scr = QApplication::desktop(); WId w = scr->winId(); QPixmap pm = QPixmap::grabWindow(w,0,0,scr->width(), scr->height()); Just specify geometry of all screen and it works perfect.