title: How to activate a QPainter::beginNativePainting , Painter inactive QGLWidget?
body: <p>I got a *.dll file with follwing class signature</p>
  
  <pre><code>class Render_WidgetGL: public QGLWidget {
      Q_OBJECT
  }
  </code></pre>
  
  <p>I created such a Render_WidgetGL object and set that to a layout object</p>
  
  <pre><code>Render_WidgetGL* renderWidget = new Render_WidgetGL(resources);
  QGridLayout* gridLayout = new QGridLayout;
  gridLayout-&gt;addWidget(renderWidget, 0, 1);
  ui-&gt;horizontalLayout_5-&gt;addLayout(gridLayout);
  </code></pre>
  
  <p>When I start and execute my application I got following message:</p>
  
  <p>RenderProject|nderBackendOpenGlES2|Using GLEW 1.12.0
  RenderProject|nderBackendOpenGlES2|OpenGL 2.0: 1
  QPainter beginNativePainting: Painter not active
  QPainter setRenderHint: Painter must be active to set rendering hints
  QPainter beginNativePainting: Painter not active
  QPainter beginNativePainting: Painter not active</p>
  
  <p>I do not have such a Painter object in my code, so I assume it comes within the *.dll library. So how can I activate the Painter ?
  (By the way: The Qt docssay, that QGlWidget is obsolete)</p>
  
  <p>Thnx in advance!</p>