菜单和对应的item的文字字体和颜色怎么设置啊?要求菜单栏背景为黑色,导致菜单根本看不见了,所以需要将菜单项的文字颜色设置为白色,该怎么做啊
QMenu::item 中qss属性种文字只有font ,font -size,font -style,font-family,没有font-color阿
this->menuBar()->setStyleSheet("background-color: rgb(51,51,51);");
[ 此帖被kevinwmy在2009-10-20 09:56重新编辑 ]