Hello,
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());
file.open(QIODevice::WriteOnly);
pixmap.save(&file, "PNG");
Is there another way of taking a screenshot?
Thanks in advance!
Best regards,
Maximilian