Outils pour utilisateurs

Outils du site


lib:qt:qwidget

Ceci est une ancienne révision du document !


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.1653485727.txt.gz · Dernière modification : 2022/05/25 15:35 de root