1

I am setting the title of the one the menu option as mentioned below:

QString Str = "User Profile: " + loFile.baseName();
m_titleBar->m_UserProfileMenu->setTitle(Str);

Here my requirement is, I need to change the font color of the text loFile.baseName() which is been added as part of the title.

Is it possible to change of the color of this text? Examples would be helpful...

Bharathi
  • 337
  • 1
  • 5
  • 17
  • Bharathi, I don't think it is possible with QAction. You might try subclass `QWidgetAction`, it it worth the effort. – vahancho May 26 '14 at 11:50
  • I tried Rich text also something like this : QString text("UserProfile: %1"); text.arg(loFile.baseName()); But this didnt work for me – Bharathi May 26 '14 at 12:16
  • @vahancho : Can u give me an example on that since I am very new to QT – Bharathi May 26 '14 at 12:19

0 Answers0