QtQuick1 example I can’t make it work on QtQuick2
screenCapture.hpp
#include class QString; class QQuickView; class screenCapture :
I found a solution, pretty simple, change the function “capture” to
void screenCapture::capture(QString const &path) const { QImage img = currentView_->grabWindow(); img.save(path); }