title: How to set the size of browser using QtWebKit
body: <p>Recently I use PyQt4 to crawl some web pages. I want to set different size of the browser which is generated by <code>QWebView().show()</code>. I tried to use the following code snippet to set the size:</p>
  
  <pre><code>self.qsize = QWebPage().viewportSize()
  self.qsize.setHeight(3000)
  self.qsize.setWidth(1000)
  print self.qsize.height()
  print self.qsize.width()
  </code></pre>
  
  <p>But the browser displayed is always the same size.</p>
  
  <p>Please give me some tips on how to set the size of the browser displayed by <strong>QWebView</strong>. Thanks in advance.</p>