title: How to get an openGL canvas in qt 5.3.2 < 5.4?
body: <p>I am attempting to write a qt 5.3.2 application with a main window that has a rectangular section showing an openGl content.</p>
  
  <p>Browsing the internet I found approaches.</p>
  
  <p>First among them is the <em>QGLWidget</em>. However, it appears to be obsolete: <a href="http://doc.qt.io/qt-5/QGLWidget.html" rel="nofollow noreferrer">http://doc.qt.io/qt-5/QGLWidget.html</a></p>
  
  <p>Sadly the site does not state an alternative, so I browsed on and found Qt 5.4's <em>QOpenGLWidget</em> at <a href="https://doc-snapshots.qt.io/qt5-5.4/qopenglwidget.html" rel="nofollow noreferrer">https://doc-snapshots.qt.io/qt5-5.4/qopenglwidget.html</a></p>
  
  <p>However, being a Debian lover I appear to be stuck with Qt 5.3.2 &lt; 5.4 which is minimum for that class.</p>
  
  <p>On this forum I also found <a href="https://stackoverflow.com/questions/17983107/how-can-qwindow-replace-qglwidget">How can QWindow replace QGLWidget?</a> which was asked more than a year ago and even has an accepted answer. But first I have to admit I do not understand it plus the author states it is a 'temporary hack' at best.</p>
  
  <p>I guess I could dedicate a new window for the openGL content... but is there really no other recommended way for a user of qt 5.3?</p>