C++ (Qt)QPixmap QPixmap::grabWindow ( WId window, int x = 0, int y = 0, int width = -1, int height = -1 ) [static]
C++ (Qt)QApplication::desktop()->winId()
#include "readpicter.h"#include <QtGui>readPicter::readPicter(QWidget *parent, Qt::WFlags flags) : QMainWindow(parent, flags){ originalPixmap = QPixmap(); originalPixmap = QPixmap::grabWindow(QApplication::desktop()->winId());}