PDA

View Full Version : Can I capture it when using a dual screen with pyqt?



yskioi
23rd July 2020, 02:10
When using a dual screen, is it possible to capture if the window is between the screen and the screen?
If possible, how should I search for it?

Ginsengelf
5th August 2020, 07:51
Hi, yes that should be possible.
If you want to capture a widget from your own program you can try QWidget::grab(), and for taking screenshots of other applications there is the screenshot example:
https://doc.qt.io/qt-5/qtwidgets-desktop-screenshot-example.html

Ginsengelf