PDA

View Full Version : QToolButton doesn't fit to text width



nnzz
13th July 2016, 09:48
Hi, I have a QToolButton which doesn't fit to text width on Linux.
Is there a "FitToText" method I can call?
Thx:confused:

anda_skoa
13th July 2016, 11:19
It should do that by default.
Do you have the button on a toolbar? or in a layout?

Cheers,
_

nnzz
13th July 2016, 11:32
It's in a layout. The text on one ToolButton is a bit longer than the others, and it is clipped

anda_skoa
13th July 2016, 12:21
Check that there are no size restrictions, like a minimum size or any of the button's parents not being in a layout, etc.

Cheers,
_