anda_skoa, thank you very much, that is the answer! It was enough to make QApplication static, that's it