PDA

View Full Version : QTabWidget icon padding/margin?



Nyte
2nd April 2013, 11:31
Can anyone tell me how to set the position or set the margin/padding of a TabBar icon?

I made a QPushButton in Qt and added an icon trough the Property Editor. The icon and the text appeared fine. However, due to a change in development, we decided to replace the button (and the buttons next to it) with a TabWidget and set the appearances the same.

But when i add the an icon the the TabBar trough the Property Editor, it doesn't place the icon on the same location as it did with the PushButton. The image is set right on the border....

see image:
http://i.imgur.com/wGdDNRv.png

I tried to add some extra whitespace to the image to set it on the right spot, but this also pushes the TabText away.