PDA

View Full Version : How to access menu item created by QtDesigner?



wang9658
9th May 2013, 15:30
I have created menuBar and menus with Qt Designer. sometime, but want to hide some menus (actions) with code. It seems that's impossible because no way to get the action objects.

Certainly, if writing codes to create those menus, I can hide or show them with a pointer to the object. But I just want to know how the code to control objects created by qe designer.

Thanks.

sorry, close and open the project again, it works. that should be a bug of qt creator.

anda_skoa
9th May 2013, 15:53
The action objects are part of the ui point just like any widget created in designer.

Cheers,
_