QToolButton Icon position
Unsolved
General and Desktop
-
Is it possible to manipulate the position of the Icon inside a QToolButton?
In my case, the icon is to near the top border, I want to set a top margin to the icon.
But the setStyleSheet only set the margin to the button itself.button->setStyleSheet("QToolButton { margin-top: 10px; } ");
Thanks,
Ingo
-
Hi,
What version of Qt ?
On what OS ?
Can you show what you get ?
Can you show what you would like to achieve ? -
@pixbyte
you should use even stylesheet for all thisbutton->setStyleSheet("QToolButton { background-image: url(:/path/to/image.jpg); margin-top: 10px; } ");
you can play with background-image or with image
Not tested but should work