<div dir="ltr"><div><div>Hi Lays,<br><br></div>There are some VTK examples that show how to set up simple Qt applications using QVTKWidget here [1]. Generally I subclass QMainWindow as shown in this example [2] rather than subclassing QVTKWidget.<br><br>Also, if you are writing a new application, I would recommend using QVTKWidget2 rather than QVTKWidget since the latter is deprecated in VTK master. I think it should be fairly close to a drop-in replacement, but others on the list will know more about that than me.<br><br></div><div>HTH,<br></div>Shawn<br><div><br>[1]: <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx#Qt">http://www.vtk.org/Wiki/VTK/Examples/Cxx#Qt</a><br><br>[2]: <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Qt/RenderWindowUISingleInheritance">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Qt/RenderWindowUISingleInheritance</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 29, 2015 at 6:35 PM, Lays Rodrigues <span dir="ltr"><<a href="mailto:laysrodriguessilva@gmail.com" target="_blank">laysrodriguessilva@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi guys, good night.<div>I'm really newby on Qt and more with VTK.</div><div>I need to do a enviroment 3D to load STL files, I already that VTK have a function ready to load STL files (<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadSTL" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadSTL</a>).</div><div>But my doubt is:</div><div>What is the better way to work with QVTKWidget?</div><div>Make a class inherit from it, and do all controls there? Or make out, in main class?</div><div>Read the STL file is the first thing that i need to do. After i will need do more stuff. But i'm focusing now only in read and render the STL file.</div><div>Its the first time that i'm working with graphics, so any help or tips it will be welcome.</div><div>Thanks everyone, good night!</div><span class="HOEnZb"><font color="#888888"><div><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr">__<div><b>Lays Rodrigues</b></div><div><b>Developer Front-End at Br-Print3D Project</b></div><div><b>Student of Computer Science at UFF/PURO</b></div><div>Organizadora da Semana da Computação UFF-PURO</div><div><a href="http://www.facebook.com/semanacomputacaopuro" target="_blank">www.facebook.com/semanacomputacaopuro</a></div><div><a href="http://www.facebook.com/brprint3d" target="_blank">www.facebook.com/brprint3d</a><br></div><div><br></div><div><br></div><div><br></div></div></div></div></div>
</div></font></span></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>