AnsweredAssumed Answered

Take screenshot of MapGraphicsView (in C++)

Question asked by Macxx26 on Mar 28, 2016
Latest reply on Mar 30, 2016 by Macxx26



I want to take a screenshot of the MapGraphicsView and export it to png, jpg..


I tried this, but it returns just a grey picture:

//EsriRuntimeQt::MapGraphicsView* m_MapGraphicsView;
auto pixmap = QPixmap::grabWidget(m_MapGraphicsView);
QFile file(fileUrl.toLocalFile());;, "PNG");


Is there another way of taking a screenshot?

Thanks in advance!


Best regards,