Important: Please read the Qt Code of Conduct -

Qt 5.8.0 on Ubuntu 16.04 LTS, program menus lost when going from edit to design

  • In running through tutorials on Qt (recent install of 5.8.0 on Ubuntu 16.04 LTS), I'm noticing that the program menus go missing when I switch from the editor (ex: mainwindow.cpp) to the forms (ex: mainwindow.ui). The menus do not re-appear upon switching back to the editor. Similar problems that are listed on the web over the last couple of years suggest remedies that include changing the Ubuntu system settings under Appearance/Behavoir (Show the menus for a window) to "Always displayed" and showing the menus "In the window's title bar", but this does not solve the problem. Other suggested solutions include setting QT_QPA_PLATFORMTHEME=appmenu-qt5 to QT_QPA_PLATFORMTHEME= , however this does not solve the problem either. Additional suggestions include deleting appmenu-qt5 with mixed reports of success, but I have not done this out of concern for unintended consequences. If the Qt program is closed and re-opened, the menus are present once more, and re-opening the project does not interfere with the menus until I go into the .ui file again. I've pretty well exhausted the suggestions on the web, so if anyone has some ideas on this or is experiencing similar problems, please do let me know. I'm relatively new to Ubuntu and brand-new to Qt, so if there is any additional diagnostic information that I have omitted, I would be happy to supply it.

    Thanks in advance !!

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Not really an answer but if you'd like to avoid that kind of problem and if you don't absolutely need the latest Qt version to develop your application then go with your distribution provided Qt. It shouldn't suffer from these problems since any patch applied to make Qt work with their design will already be applied.

  • @SGaist Thanks so much! I didn't know that was an option. I'll give that a try. Greatly appreciate the response, thanks again.

  • Lifetime Qt Champion

    You're welcome !

    If that solves your problem, then please mark the thread as so using the "Topic Tools" button so that other forum members may know a solution has been found :)

Log in to reply