PDA

View Full Version : spacing between icon and text



mrchumley
18th May 2012, 11:57
Hi

I'm trying to increase the space between a QToolButton's icon and text. I'm assuming its one of the styles (padding, margin, border) but none of these are having any effect. What is the correct way to increase the space.


TIA

Mike

sonulohani
21st May 2012, 10:43
Use addStretch() to add a stretchable space (a QSpacerItem) with zero minimum size and stretch factor stretch to the end of this box layout.

mrchumley
21st May 2012, 11:19
Thanks for replying but I'm not sure what you mean. Which box layout are you referring to? QToolButton or its parent container?