Can you add a toolbar to QDialog?

后端 未结 3 836
自闭症患者
自闭症患者 2020-12-17 18:29

I\'m working on a project that needs to call a modal window with a toolbar to do some work on some data before it\'s loaded. The reason I need the toolbar is the user has a

3条回答
  •  旧时难觅i
    2020-12-17 18:44

    You can simply use the setMenuBar function of the layout manager that is installed on your QDialog:

    myDialog->layout()->setMenuBar(myMenuBar);
    

提交回复
热议问题