[Qt-interest] Grab the desktop on Mac

simion ploscariu simion314 at gmail.com
Fri Aug 6 18:01:40 CEST 2010


Hi, i am trying to grab a pixmap with the desktop on Mac
 QPixmap pixmap= QPixmap::grabWindow(QApplication::desktop()->winId());;
    if(pixmap.isNull())
    {
        qDebug("QPixmap::grabWindow(QApplication::desktop()->winId());;
 -returned a null image");
    }

and the pixmap is null.
Any idea? Thx



More information about the Qt-interest-old mailing list