tags:

views:

180

answers:

1

How do I set line height in QLabel when in WordWrap mode?

+1  A: 

There is no line spacing property in QLabel. You can change the widget font and it will change the line's height but I suspect that is not what you want.

Line's height is computed from the QFont of the widget and can be obtained by the QFontMetrics associated with the widget. Using this information, you may create your own widget that as a line spacing property (and a text wrap mode) but that represents a lot of low-level work.

Lohrun