Lower Qt5 version requirement to 5.2
Fix hidden menubar behavior on Ubuntu and Qt5