title: Qt5. Embed QWidget object in QML
body: <p>I am using Qt5 beta and trying to embed a QWidget-based object into QML. The goal is to use QML as much as possible, and only use QWidget objects where QML does not do what I need. I found a link explaining how to do this for Qt4.7, but I have not found any information explaining how to do this in Qt5.</p>
  
  <p><a href="http://doc.qt.digia.com/4.7/declarative-cppextensions-qwidgets.html" rel="noreferrer">http://doc.qt.digia.com/4.7/declarative-cppextensions-qwidgets.html</a></p>
  
  <p>The same example is also available in the Qt5 examples folder under:</p>
  
  <p>examples\qtquick1\declarative\cppextensions\qwidgets</p>
  
  <p>Unfortunately, this example uses QtQuick 1, rather than QtQuick 2, and I would like to use the new features of Qt5. I actually want to embed a qwt widget, but as a first step I would be happy to embed any simple QWidget-based object.</p>
  
  <p>Can anybody help me get the example working under Qt5 / QtQuick 2 ?</p>