[英]Qwebview, how to resize it with window/
I've got an QWebView object inside my project and i want it to resize whenever i am resizing a main window. 我的项目中有一个QWebView对象,并且每当我要调整主窗口的大小时,我都希望它能调整大小。 How to achieve that?
如何实现呢? http://pastebin.com/3wcUygvb <- That's the ui code/
http://pastebin.com/3wcUygvb <-这是ui代码/
It looks like you've put all your widgets in layouts, but you haven't set a layout on the main form. 看起来您已经将所有小部件都放置在布局中,但是您尚未在主窗体上设置布局。
In Qt Designer, right-click on a blank area of the form and select Layout/Layout in a Grid
. 在Qt Designer中,右键单击表单的空白区域,然后选择
Layout/Layout in a Grid
。
Then save and re-compile with pyuic4
. 然后保存并使用
pyuic4
重新编译。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.