Hi everyone,<br><br>Has anyone been able to successfully use QPainter methods in QVTKWidget.<br><br>So, I have derived a class from QVTKWidget and override the paintEvent method as follows:<br><br>void QTVTKWidget::paintEvent( QPaintEvent * event)
<br>{<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; QVTKWidget::paintEvent(event);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; QPainter painter(this);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ....<br>}<br><br>This however,&nbsp; returns a run time error as in it could not create the painter object. The error is:
<br><br>Painter::begin(), paintdevice returned engine == 0, type: 1<br><br>Just wondering if someone has been able to use this successfully.<br><br>&nbsp;<br>Cheers,<br><br>Anja