Unsolved Get Screenshot on MacOS
-
Hello.
I need to get screenshot of specific window on MaxOS.
With Windows it looks like:HWND h = FindWindow(NULL, TEXT("title")); if (h != NULL) { QPixmap pix = QPixmap::grabWindow((WId)(h)); qDebug() << pix.size(); ui->label->setPixmap(pix); }
But is the same task possible on MacOS?
-
Hi @UndeadBlow,
maybe this helps: http://doc.qt.io/qt-5/qtwidgets-desktop-screenshot-example.html