Hi, im on Linux, and Im trying to save a screenshot.
I read that QPixmap::grabWindow() is deprecated, and that I should use QScreen::grabWindow() instead.
So I did.
The problem is: The image is not being saved right, and does not show up the correct part of screen (only 4 parts of screen, upside down and in all kind of ways).
This ma code.
Code:
void Widget::on_pushButton_clicked() { qpix.save("/home/marcus/Bilder/Hello.png"); }