Make _mainWin a QPointer, to avoid problems with double deletion in case we use KDE