Prevent dialog to be minimized when MainDialog is.
Is there any way to prevent Child dialog (QDialog) to be minimized when the MainDialog (QMainDialog) is minimized ?
Or do I have to trick it by creating an invisible main dialog and replace my current main dialog by a normal dialog ?
Hi and welcome
is QMainDialog, QMainwindow?
Anyway, if you create the dialog without a parent and display it using
->Show(), it will not minimize with Main. But if you click on main it can fall behind.
After double check, my Main dialog is actually just a QDialog.
I create it with :
MainDialog *mainDlg = new MainDialog();
Then all "child" dialog are created from the MainDialog constructor :
settingDialog = new SettingDialog();
I checked with a breakpoint that settingDialog->parent() is null.
I am using kwin as window manager. Wonder if that can be the source of the problem ?