Outils pour utilisateurs

Outils du site


lib:qt:qwidget

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");

qt - How to create screenshot of QWidget_ - Stack Overflow Archive le 08/10/2019

lib/qt/qwidget.txt · Dernière modification : 2022/06/05 20:21 de 192.99.0.47