Qt button with text under icon
-
wrote on 10 Mar 2014, 04:54 last edited by
Hi,
Does anyone know how to create button with text under the icon, and with border-image for hover pressed state. I have use QToolButton but it's not very nice!@ QToolButton* button = new QToolButton();
button->setFixedHeight(70);
button->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
QAction* loadAction= new QAction(QIcon("://images/design/ico_add_sound.png"),"Add Sound",button);
button->addAction(loadAction);
button->setDefaultAction(loadAction);@Thank you.
1/1