[vtkusers] QVTKWidget + Qt Creator/ Qt Designer question

Paweł~~Łubniewski lubniewski at gmail.com
Wed Mar 3 07:15:27 EST 2010


You add a normal QWidget to the form (adjust its parameters etc.),
right-click on it, choose "Promote to..." and fill:
- name of the base class: QWidget (should be already selected)
- name of the promoted class: QVTKWidget
- header file: QVTKWidget.h
- header file global: checked (if so, Qt Designer generate #include
with <> braces)
And that's it.
Pawel~

2010/3/3 Prashanth Ravindran <prashanthravindran at gmail.com>
>
> Hi-
>
> I am a QT Newbie and would like to embed various visualizations in a QT Gui App. I have VTK  compiled with QT support (VTK_USE_GUISUPPORT && VTK_USE_QT on). All the examples build fine. However I would like to start using QTCreator and QTDesigner to make my QT Forms. Is there a way of exposing QVTKWidget in these tools, so that I can design QT/VTK hybrid GUI's visually.
>
> Sorry if this question has already been answered, my searches threw up no actionable results.
>
> Thanks,
> -- Prashanth
>
> _______________________________________________
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



More information about the vtkusers mailing list