QT5.9 Dialog stays on all workspace
-
Hi,
My development environment is Red hat 8.
My code is : QDialog *dialog = new QDialog(this) without special settings,
As a result, when the Dialog UI is opened and then the Linux workspace is switched, the dialog also moves to the new workspace, after closing the Dialog, my app may exhibit unexpected behavior. I have tried many solutions but none have worked.
I accidently discovered that Dialogs are displayed in the menu bar don't switched with workspace. so, I change the code "QDialog *dialog = new QDialog(nullptr)", some Dialogs are ok, but some problems still exist. When i add the code "setWindowsFlags(Qt::Windows)", the problem was solved.
I want to know the reason, thanks.Additional information: The Dialogs are constructed by *.ui method will not switched when workspace changed.
-
Hi,
My development environment is Red hat 8.
My code is : QDialog *dialog = new QDialog(this) without special settings,
As a result, when the Dialog UI is opened and then the Linux workspace is switched, the dialog also moves to the new workspace, after closing the Dialog, my app may exhibit unexpected behavior. I have tried many solutions but none have worked.
I accidently discovered that Dialogs are displayed in the menu bar don't switched with workspace. so, I change the code "QDialog *dialog = new QDialog(nullptr)", some Dialogs are ok, but some problems still exist. When i add the code "setWindowsFlags(Qt::Windows)", the problem was solved.
I want to know the reason, thanks.Additional information: The Dialogs are constructed by *.ui method will not switched when workspace changed.
@Felix-Yen What is the Qt version and what desktop environment (especially window manager) do you use?
-
@Felix-Yen What is the Qt version and what desktop environment (especially window manager) do you use?
-
@Felix-Yen I don't have experience with this setup. You could try a newer Qt version and also check whether it works on other Linux distributions/desktop environments.
-
@Felix-Yen I don't have experience with this setup. You could try a newer Qt version and also check whether it works on other Linux distributions/desktop environments.