[vtkusers] Using QTPainter with QVTKWidget
Anja Ende
anja.ende at googlemail.com
Mon Oct 16 05:47:31 EDT 2006
Hi everyone,
Has anyone been able to successfully use QPainter methods in QVTKWidget.
So, I have derived a class from QVTKWidget and override the paintEvent
method as follows:
void QTVTKWidget::paintEvent( QPaintEvent * event)
{
QVTKWidget::paintEvent(event);
QPainter painter(this);
....
}
This however, returns a run time error as in it could not create the
painter object. The error is:
Painter::begin(), paintdevice returned engine == 0, type: 1
Just wondering if someone has been able to use this successfully.
Cheers,
Anja
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20061016/f44fe496/attachment.htm>
More information about the vtkusers
mailing list