PDA

View Full Version : QTextbrowser size question?



anafor2004
18th April 2008, 10:57
Hi All
I have prepared a form, which has a text browser on it.I am using it for displaying different html files but problem is every html file has different size.Some of them is long , some of them is short.
According to it's size , i want to change textbrowser's size and location (geometry) on form.

How can i do this?

Thanks.

wysota
19th April 2008, 13:04
You can ask QTextDocument and its text layout for the size of the document it holds.