PDA

View Full Version : How to adjust QWebView size within a form?



richardander
10th June 2009, 10:06
Hi,

In my application, the main window is a form with a Qwebview inside. The Qwebview almost occupy the whole. If user resize the form, I hope the QWebview can adjust its size accordingly in vertical direction and don't change its size in horizontal direction.

Please help!

Thank you!

Richard

codeman
10th June 2009, 10:31
Hello,

play with this methods:



setFixedHeight ( int )
setFixedSize ( const QSize & )
setFixedSize ( int, int )
setFixedWidth ( int )

aamer4yu
10th June 2009, 10:45
QWebView inherits QWidget...
So all functions of QWidgets are applicable,,, arent they :rolleyes: