I want to show some text in a QToolButton derived class but it needs to be word wrapped. I would like to do it in an "automatic" way (instead of using \n
when needed) just as one can do it when using QLabel and setting word wrapp to true
, but I couldn't find anything on Qt Assistant that would do that for me.
So, is it possible? And how is it done? If there is nothing like word wrapping for QToolButton, how could I get around this without using "hard code layout" (that is, \n
)?