C
C
ceborgia2015-03-10 16:51:40
Qt
ceborgia, 2015-03-10 16:51:40

Qt. How to take a screenshot of a widget and print it out?

I found several ways on the Internet, but none came up (either the compiler swears, or nothing happens), maybe they will tell you. Preferably with sample code

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vitaly, 2015-03-10
@ceborgia

And through the usual QWidget:: render tried? doc.qt.io/qt-5/qwidget.html#render Written
in QPixmap, and you can do anything with it.

K
kuzia6146, 2015-03-19
@kuzia6146

Did through QWidget::grab()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question