Within Qt Creator, I don't know how to change a QMenu object to a QAction object.

From my top menu bar, I would like one object to act as a button instead of a dropdown menu, since there are no submenus for this particular object.

Reading from various threads, I learned that I need to change my QMenu object to a QAction object.

I was able to manually edit ui_mainwindow.h and modify it and it works perfectly; but of course, whenever I rebuild from the GUI, I lose my changes.

Qt Code:
  1. QAction *actionSubmittal_Directory;
  2. actionSubmittal_Directory = new QAction(MainWindow);
  3. actionSubmittal_Directory->setObjectName(QString::fromUtf8("actionSubmittal_Directory"));
To copy to clipboard, switch view to plain text mode 

Any suggestions how to change this in the GUI creator itself?