[vtkusers] Assigning object a 2D text label

Sankhesh Jhaveri sankhesh.jhaveri at kitware.com
Wed Aug 16 10:10:06 EDT 2017


Hi Mads,

The error originates from the following line:

    interactor->Start();

You don’t need to start the event loop manually with the QVTKInteractor.
QVTKWidget would use Qt’s event loop.
Just remove the Start() call.

Hope that helps.

Sankhesh
​

On Wed, Aug 16, 2017 at 7:43 AM Mads M. Hansen <madsmh at gmail.com> wrote:

> Based on the example at
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/Follower
>
> I have tried to attach a text label to a number of objets (line
> 106-149), however
> when the render method is called  (line 80 in the attached file)
> I get this message:
>
> /xxx/VTK-8.0.0/GUISupport/Qt/QVTKInteractor.cxx, line 147
> QVTKInteractor (0x1ea3da0): QVTKInteractor cannot control the event loop.
>
> and no text appeares on screen. I have been unable to figure out how
> to sort it out :(
>
> .. Mads
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
-- 
Sankhesh Jhaveri *Sr. Research & Development Engineer* | Kitware
<http://www.kitware.com/> | (518) 881-4417
​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170816/d3f70a3d/attachment.html>


More information about the vtkusers mailing list