solution found:

setAttribute(Qt::WA_QuitOnClose, false);