I\'ve created two windows (a mainwindows and a QDialog) and in the constructor of the mainwindows I created a QDialog of handle what it appears in front of mainwindows. the