title: pyQt QWidget 'flicker' on resize and redraw
body: <p>Im looking for a way to minimize redraw 'flicker' on my pyQt app.</p>
  
  <p>My app is a QMainWindow containing two QDockWidget derived objects (and the usual assortment of tool. menu and statusbars). One of the QDockWidgets* uses a QGridLayout to arrange a number of QGLWidget derived windows in each grid element. </p>
  
  <p>When I resize the MainWindow, the entire arrangement resizes correctly. However, in the space between the QGLWidgets I can see what looks like some partially rendered oddly-shaped view of some part of the MainWindow 'flick' into view for a split second and then render correctly. My app is generally colored with dark styles but that flicker in between the QGLWidgets is usually just white and black. The faster I drag the Mainwindow borders, the more pronounced this flicker. And let me emphasize, the 'flicker' is only in the background behind and between the QGLWidget objects, everything else seems fine.</p>
  
  <p>The flicker is there whether I have anything painted in the QGLWidgets or not, so there isn't a heavy load on the rendering.</p>
  
  <p>Is there something I can do to eliminate this flicker on repaint (and resize) events?</p>
  
  <p>I've tried coloring all the widgets the same dark color, played with .hide() and .show() on some of the widgets, but they just seem to slow the process down and make it worse.</p>
  
  <ul>
  <li>NOTE I found I had to put a dummy QWidget in the QDockWidget as the QDockWidget wouldn't accept (I guess it doesn't support) Layouts. Maybe that has something to do with this.</li>
  </ul>
  
  <p>This is with pyQt 4.10.1 for python 2.7 running on Windows 7. I have about a months experience with pyQt</p>