[Qt-interest] Screenshot

Srdjan Todorovic todorovic.s at googlemail.com
Fri Jul 24 11:42:18 CEST 2009


Hi,

On 24/07/2009, Ankit Agarwal <ankit17.ag at gmail.com> wrote:
> Hi,
> I want that the user should not be able to take a screen shot of my
> application.

Why would you want to do this?

> One way to prevent this is to re-implement the keyPress() functions and
> check of Print Screen key being pressed but how can I prevent the screenshot
> being taken from a third party tool?

On Linux, the screen capture will involve the window manager or at the
very least X11. You'd have to see if X11 has some option to disable
screen capture - but I doubt such a thing exists. Otherwise what would
xwd give you if you were to capture while your program was running?

Srdjan



More information about the Qt-interest-old mailing list