Solved: The QMainDialog never can be Modal. Put "setWindowModality (Qt::NonModal );" in its constructor.