Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
take a screenshot of arbitrary region of screen.
samdol last edited by
I found that we can take a screenshot by
But this example shows how to take a whole desktop screen.
I would like to draw a rectangle on desktop screen and take a screenshot only inside of this screen shot. Is it possible?
Flotisable last edited by
I think it's possible.
In the example, it use
grabWindowto get the pixmap of screen int
shootScreenslot. From the document, you can set a rectangle to specify where you want to grab.