Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在设置菜单选项的标题,如下所述:
QString Str = "用户配置文件:" + loFile.baseName(); m_titleBar->m_UserProfileMenu->setTitle(Str);
这里我的要求是,我需要更改作为标题的一部分添加的文本 loFile.baseName() 的字体颜色。
是否可以更改此文本的颜色?例子会很有帮助...