我试图在QToolButton上使用方法setToolButtonStyle隐藏文本并仅显示图标,它告诉我:错误:'QToolButton'中没有名为'setToolButtonStyle'的成员
void mainmenu_view::initButton(QToolButton* button,QSize size){
std::stringstream ss;
ss<<":/draw/"<<button->text().toStdString()<<".PNG";
button->setFixedSize(size.width(),size.height());
button->setIcon(QIcon(QString::fromStdString(ss.str())));
button->setIconSize(size);
**button->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);**
}