Hide shorcut text of QMenu Action and more ;)
I ve looking for an answer all over the internet but i dont seem to get one…
i ve tried changing the stylesheet but i think there’s no option to do what i want
in the documentation i ve read that the action has: (icon-text-shorcut text), so what i want is to disable/hide the shorcut text
basically i want Ctrl+F to disappear from the menuAction for example :/
The second question is…i want to only show windowTitle and windowIcon
so far i have this
but the icon doesnt appears..(i dont want the close/help/min/max buttons to appear)
thanks!
6 replies
For your first question, this can helps:
(QAction::) void setVisible ( bool )
yourAction.setVisible (false);
“This property holds whether the action can be seen (e.g. in menus and toolbars).”
http://developer.qt.nokia.com/doc/qt-4.8/qaction.html#visible-prop
Your second question is a hard thing…
You must log in to post a reply. Not a member yet? Register here!
