Qwebview, how to resize it with window/

0 votes
asked Jan 18, 2012 by matiit

I've got an QWebView object inside my project and i want it to resize whenever i am resizing a main window. How to achieve that? http://pastebin.com/3wcUygvb <- That's the ui code/

1 Answer

0 votes
answered Jan 18, 2012 by ekhumoro

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.

Then save and re-compile with pyuic4.

Welcome to Q&A, where you can ask questions and receive answers from other members of the community.
Website Online Counter