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);
}
↧