Capture multiple screens desktop image using Qt4

后端 未结 4 1300
小鲜肉
小鲜肉 2021-02-06 11:49

i am writing a screen capture application in Qt4 with c++. I have a problem when tuning on dual screens. I am unable to get an image with the second screen. I tried a c# applica

4条回答
  •  情话喂你
    2021-02-06 12:37

    you can count screens with QDesktopWidget::screenCount() (Qt 4.6) and then travel through all screens and do QPixmap::grabWindow(...)

    About "desktop composed from 2 screens". It all depends if 2 screen is virtual (all screens treated as one screen) or not.

    @Frerich Raabe: it works on Windows 7 as I'm using similar code to perform screen grab.

提交回复
热议问题