[Solved] Label Widget: how to auto size the Height ?


02-07-2008 20:12:09

when i add words to the label, the Width increases automaticly
but, when i add a '\n some text' the Height does not increase

anyway, i will use a fully transparent background (i want to show only the text) and if there are'nt function for this 'autoHeight', i'll use setSize, but, there are a way to increase the Height when i add new lines?

tks :wink:


03-07-2008 17:49:54

I think its easiest just to set the size manually. Also if you have a lot of text, you can try using the LabelArea widget, it supports a ScrollBar.