trying to fix qapplication app.exec() problem on viewer