Changed QGuiApplication to QApplication in captchagen.