Search code examples
c++qtdialoggnome-3

Qt QDialog and GNOME 3, how to display the close button/title bar and make it movable?


In GNOME 3 when displaying any QDialog it appears that it can't be moved and it has no title bar.

Is there a way to re-enable the title bar and make it movable? I attempted to use a QMainWindow as a workaround instead but it appears in the task bar and won't appear as a "modal" dialog.


Solution

  • Probably, it might help you:

    1. Install Configuration Editor (dconf-editor)
    2. Open it: Alt+F2, enter dconf-editor, press Enter
    3. Go to: /org/gnome/shell/overrides and select attach_modal_dialogs
    4. Change Use default value to OFF
    5. Change Custom value to False

    enter image description here

    Type r in Alt+F2 prompt to restart Gnome shell and see the changes (QDialogs should become movable).