<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";
        mso-fareast-language:EN-CA;}
span.co1
        {mso-style-name:co1;}
span.sy1
        {mso-style-name:sy1;}
span.sy4
        {mso-style-name:sy4;}
span.me2
        {mso-style-name:me2;}
span.br0
        {mso-style-name:br0;}
span.sy2
        {mso-style-name:sy2;}
span.nu18
        {mso-style-name:nu18;}
span.nu16
        {mso-style-name:nu16;}
span.nu0
        {mso-style-name:nu0;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-CA link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Hello vtkusers,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Anybody knows how to use <span style='font-size:9.5pt;font-family:Consolas;color:#216F85;background:white;mso-highlight:white'>vtkOrientationMarkerWidget</span><span style='font-size:9.5pt;font-family:Consolas;color:#216F85'> </span>with QVTKWidget interactor? I have been trying to implement the VTK example (http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/DisplayCoordinateAxes) and it worked smoothly. However, within  my QVTKWidget Camera, and I caught  the following exception:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>ERROR: In C:\VTK\VTK-7.0.0\GUISupport\Qt\QVTKInteractor.cxx, line 147<o:p></o:p></p><p class=MsoNormal>QVTKInteractor (000000F46583D670): QVTKInteractor cannot control the event loop.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Following my <span style='font-size:9.5pt;font-family:Consolas;color:#216F85;background:white;mso-highlight:white'>vtkOrientationMarkerWidget</span><span style='font-size:9.5pt;font-family:Consolas;color:#216F85'> </span>snapshot<span style='font-size:9.5pt;font-family:Consolas;color:#216F85'>:</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:9.5pt;font-family:Consolas;color:#216F85;background:white;mso-highlight:white'>vtkRenderWindow</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>* </span><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>renwin</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> = </span><span style='font-size:9.5pt;font-family:Consolas;color:#216F85;background:white;mso-highlight:white'>vtkRenderWindow</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>::</span><span style='font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white'>New</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>();</span><span style='font-size:9.5pt;font-family:Consolas;color:black'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>myQVTKWidgetCAmera</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>-></span><span style='font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white'>SetRenderWindow</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>(</span><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>renwin</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>);</span><o:p></o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>Ren1</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> = </span><span style='font-size:9.5pt;font-family:Consolas;color:#216F85;background:white;mso-highlight:white'>vtkRenderer</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>::</span><span style='font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white'>New</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>();<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>myQVTKWidgetCAmera</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>-></span><span style='font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white'>GetRenderWindow</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>()-></span><span style='font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white'>AddRenderer</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>(</span><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>Ren1</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>);</span><span style='font-size:9.5pt;font-family:Consolas;color:black'><o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-size:9.5pt;font-family:Consolas;color:#216F85;background:white;mso-highlight:white'>vtkAxesActor</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>* </span><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>myAxActor</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> = </span><span style='font-size:9.5pt;font-family:Consolas;color:#216F85;background:white;mso-highlight:white'>vtkAxesActor</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>::</span><span style='font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white'>New</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>();</span><span style='font-size:9.5pt;font-family:Consolas;color:black'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:#216F85;background:white;mso-highlight:white'>vtkSmartPointer</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'><</span><span style='font-size:9.5pt;font-family:Consolas;color:#216F85;background:white;mso-highlight:white'>vtkOrientationMarkerWidget</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>> </span><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>myWidget</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> = </span><span style='font-size:9.5pt;font-family:Consolas;color:#216F85;background:white;mso-highlight:white'>vtkSmartPointer</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'><</span><span style='font-size:9.5pt;font-family:Consolas;color:#216F85;background:white;mso-highlight:white'>vtkOrientationMarkerWidget</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>>::</span><span style='font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white'>New</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>();<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>              </span><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>myWidget</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> -></span><span style='font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white'>SetOrientationMarker</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>(</span><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>myAxActor</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>              </span><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>myWidget</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> -></span><span style='font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white'>SetInteractor</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>(</span><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>myQVTKWidgetCAmera</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>-></span><span style='font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white'>GetRenderWindow</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>()-></span><span style='font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white'>GetInteractor</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>());<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>              </span><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>myWidget</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> -></span><span style='font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white'>SetViewport</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>(0.7, 0.0, 1.00, 0.3);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>              </span><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>myWidget</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> -></span><span style='font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white'>SetEnabled</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>(1);<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>              </span><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>myWidget</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> -></span><span style='font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white'>InteractiveOn</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>();</span><span style='font-size:9.5pt;font-family:Consolas;color:black'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.5pt;font-family:Consolas;color:black'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>Ren1</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>-></span><span style='font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white'>ResetCamera</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>();<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>Ren1</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>-></span><span style='font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white'>Render</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>();<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>              <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>myQVTKWidgetCAmera</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>-></span><span style='font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white'>GetRenderWindow</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>()-></span><span style='font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white'>GetInteractor</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>()-></span><span style='font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white'>Start</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>();</span><span style='font-size:9.5pt;font-family:Consolas;color:black'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.5pt;font-family:Consolas;color:black'><o:p> </o:p></span></p><p class=MsoNormal>Thank you very much for any help,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA'>Luis Vieira</span></b><span style='font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA'>,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA'>Consultant, Software Engineer<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA'>Vektore Exploration Consulting Corporation</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial",sans-serif;color:#66696A;border:none windowtext 1.0pt;padding:0cm;background:white;mso-fareast-language:EN-CA'>ca.linkedin.com/in/</span><span style='font-size:10.0pt;font-family:"Arial",sans-serif;color:#333333;border:none windowtext 1.0pt;padding:0cm;background:white;mso-fareast-language:EN-CA'>joaoluisvieira</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA'><o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-CA'><a href="mailto:luis.vieira@vektore.com"><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:blue'>luis.vieira@vektore.com</span></a></span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA'><o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-CA'><a href="http://www.vektore.com/"><span lang=EN-US style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#0563C1'>www.vektore.com</span></a></span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA'><o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>