PDA

View Full Version : Styling Text and Icon in QToolButton (ToolButtonTextUnderIcon)



mindo
23rd March 2011, 05:07
Hello

I'm trying to figure out the way to apply the styles on the QToolButton when ToolButtonTextUnderIcon is set for toolButtonStyle.

What I want to achieve? I want to get the icon closer to the text by applying margins or paddings to ether icon or text. Moreover, I want to get icon a slightly down to make it pixel perfect.

Current solution of making icon and text as one image and setting toolButtonStyle to ToolButtonIconOnly does not meet my needs anymore...

Thanks