Capture multiple screens desktop image using Qt4

后端 未结 4 1407
小鲜肉
小鲜肉 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:48

    I recently noticed the same issue.

    I eventually decided to drop Qt for taking screenshots. Another situation in whic Qt breaks is when using the Aero theme of Windows Vista or Windows 7. This theme apparently renders all data into a background buffer, so all screenshots taken by Qt are all black.

    Instead of using Qt I can recommend using the ScreenShooter class as described at http://www.apriorit.com/our-experience/articles/9-sd-articles/193-multi-monitor-screenshot

提交回复
热议问题