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
@mainWin->setWindowFlags (Qt::Window | Qt::WindowTitleHint | Qt::CustomizeWindowHint);@but the icon doesnt appears..(i dont want the close/help/min/max buttons to appear)
thanks!
-
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...
-
example: !http://www.qtcentre.org/attachment.php?attachmentid=7274&d=1326675286&thumb=1(ctrl+f OUT!)!