title: Display a webcam stream in PyQt4 using OpenCV Camera Capture
body: <p>I am using this Python script to display my webcam:</p>
  
  <pre><code>from opencv.cv import *  
  from opencv.highgui import *  
  
  import sys
  
  cvNamedWindow("w1", CV_WINDOW_AUTOSIZE)
  camera_index = 0
  capture = cvCreateCameraCapture(camera_index)
  
  def repeat():
      global capture #declare as globals since we are assigning to them now
      global camera_index
      frame = cvQueryFrame(capture)
      cvShowImage("w1", frame)
      c = cvWaitKey(10)
  
      if c == "q":
          sys.exit(0)
  
  if __name__ == "__main__":
      while True:
          repeat()
  </code></pre>
  
  <p>It is working quite well, but I would like to set this display inside my Qt application.
  How can I use the <code>IplImage</code> OpenCV image into a Qt <code>VideoWidget</code>?</p>