MenuBar Not Showing for Simple QMainWindow Code, Qt Creator Mac OS

前端 未结 6 1448
时光取名叫无心
时光取名叫无心 2020-12-10 15:29

I have been having problems adding a menu item to the built in menu bar in a Qt desktop application. I copied the code provided in the QMainWindow class reference documentat

6条回答
  •  死守一世寂寞
    2020-12-10 15:57

    I had same issued in ubuntu with python

    I used menubar's setNativeMenubar method. You can find this in c++ pyqt docs.

        menu = self.menuBar()
        menu.setNativeMenuBar(False)
    

提交回复
热议问题