jobrandt
26th September 2017, 10:07
Hello,
i have created an action:
itemsDeleteAct->setIcon(QIcon(":Delete_Items.png"));
itemsDeleteAct->setText(tr("Delete items"));
itemsDeleteAct->setShortcut(QString("Del"));
itemsDeleteAct->setShortcutContext(Qt::WidgetShortcut);
itemsDeleteAct->setStatusTip(tr("Delete selected items"));
itemsDeleteAct->setToolTip(itemsDeleteAct->statusTip());
This action is added to a toolbar. If the mouse hovers above the toolbutton a tooltip is shown(12590)
How can i control the size of the icon in this tooltip?
I can resize Delete_Items.png, but i use this action at different places.
Resizing the image would not work if i use a vector(.svg) graphic.
Best regards
i have created an action:
itemsDeleteAct->setIcon(QIcon(":Delete_Items.png"));
itemsDeleteAct->setText(tr("Delete items"));
itemsDeleteAct->setShortcut(QString("Del"));
itemsDeleteAct->setShortcutContext(Qt::WidgetShortcut);
itemsDeleteAct->setStatusTip(tr("Delete selected items"));
itemsDeleteAct->setToolTip(itemsDeleteAct->statusTip());
This action is added to a toolbar. If the mouse hovers above the toolbutton a tooltip is shown(12590)
How can i control the size of the icon in this tooltip?
I can resize Delete_Items.png, but i use this action at different places.
Resizing the image would not work if i use a vector(.svg) graphic.
Best regards