====Screenshot de l'IHM==== Ici, ''this'' est le ''QWidget'' à capturer. QRect rectangle(0, 0, this->width(), this->height()); QPixmap pixmap(rectangle.size()); this->render(&pixmap, QPoint(), QRegion(rectangle)); pixmap.save("screenshot.png"); [[https://stackoverflow.com/questions/10381854/how-to-create-screenshot-of-qwidget|qt - How to create screenshot of QWidget_ - Stack Overflow]] {{ lib:qt:qwidget:qt_-_how_to_create_screenshot_of_qwidget_-_stack_overflow_2019-10-08_23_23_31_.html |Archive le 08/10/2019}}