Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 2

Qt-interest Archive, January 2007
Find min size to remove scroll bar?


Message 1 in thread

I have a QTextEdit.  Depending on what's in it, its vertical size changes, 
sometimes showing the vertical scroll bar if the contents are long.  Is 
there a way I can find out the minimum vertical size of the QTextEdit such 
that the vertical scroll bar is not needed?  Or is there a way through size 
policies to resize the widget properly?
(Any horizontal resizing in unnecessary b/c I want to keep the horizontal 
size fixed)

Thanks in advance, Brian. 


--
 [ signature omitted ]