I use Qt Designer to create a Qt Main Window. When I try to design my menu options, I got several problems:
1. If I only create a menu item without sub-items, the menu item won't be visible. (Here I add the menu item by editing the .ui file.)
2. To solve the problem above, I referenced some example code. Then I remove the menubar from the UI designer and create the menu option directly by calling menuBar()->addAction(). This approach worked!
3. When ever I create a Qt Main Window class, the option menu always have two existing options, which are "Show open apps." and "Actions". I couldn't see where these two options were implemented. How can I remove these two options?
4. Finally, after fighting with Qt Designer, I am wondering if it is better to use Qt Designer for UI, or I should just code everything by hand? Any suggestions?
Thank you.
Hai-Ning




