Bold a menu.addAction item
I would like to bold the first line in a menu.
Code:
menu.addAction('Reports if Single or Married')
menu.addAction(' Your Annual SS at Each Start Month/Age', self.yourssmonthly)
menu.addAction(' Spouse Annual SS at Each Start Month/Age', self.spssmonthly)
menu.addAction(' Your and Spouse Annual SS on One Page', self.both_annual)
I would like to bold the "Reports if Single or Married" line only -- not the rest of the items, but need help.
thanks
Re: Bold a menu.addAction item
addAction returns a a QAction. That action has a font-property, and that font can be bold.
So something like
Code:
QAction* action
= menu.
addAction("...");
QFont font
= action
->font
();
font.setBold(true);
action->setFont(font);