Michael Vincent
Michael Vincent

Reputation: 1660

Removing QActions from the ui_mainwindow.h file

My app was started (by someone else) in Qt Designer. For a number of reasons I've decided to put the main form gui together in C++. In the designed I deleted all the gui widgets and removed the menu items from the object tree.

Having got the layout how I want it I started adding in the actions to find that they are still declared in the ui_mainwindow.h file.

Is it safe to manually remove the action declarations from this file? Or is there a way of doing this through Qt designer?

Upvotes: 0

Views: 157

Answers (1)

Amartel
Amartel

Reputation: 4286

Open your *.ui file in the designer. In the lower right corner you'll see Action Editor. Actions can be deleted from there.

enter image description here

Upvotes: 1

Related Questions