how to show action text in toolbar
Solved
General and Desktop
-
I use action->setIcon("myicon") to add an icon to the action, and action->setIconText("text") to set the icon text
toolbar->addAction(action) to add the icon to the toolbar
but there is only the icon in the toolbar, I want the icon text also shown in the toolbar (at the bottom of the icon), how to achieve this? -
@johnson54 Hi,
You need to find the QToolButton from the main toolbar and then change the ToolButtonStyle to
Qt::ToolButtonTextBesideIcon