kkingstoun
20th February 2017, 19:39
Hello,
how to export image or take a snapshot of QSurface Widget?
I'm using QSurface example.
Kking
Edit: i have found a solution:
QPixmap::grabWindow(graph->winId()).save("img.png");
how to export image or take a snapshot of QSurface Widget?
I'm using QSurface example.
Kking
Edit: i have found a solution:
QPixmap::grabWindow(graph->winId()).save("img.png");