add success flag for qt screenshot too

fixes the compilation for Qt