[vtkusers] QVTKOpenGLWidget and QWidgets
Sam Raby
rabysam28 at gmail.com
Fri May 4 17:01:29 EDT 2018
Let me rephrase the issue that I am observing. I run the following vtk
example that uses QVTKOpenGLWidget in Qt Creator. I can successfully run
the example. Then I added one simple QCheckBox to UI. I can compile the
code but the checkbox does not respond to mouse clicking, meaning that If I
click on the checkbox it does not get checked, but if I interact with
the QVTKOpenGLWidget
it causes the checkbox to be updated. Is that a bug? because what I am
doing seems pretty basic.
https://www.vtk.org/Wiki/VTK/Examples/Cxx/Qt/SideBySideRenderWindowsQt
Thanks
On Friday, May 4, 2018, Sam Raby <rabysam28 at gmail.com> wrote:
>
>
> I am running the following example of using QVTKOpenGLWidget to display a
> sphere.
>
> https://www.vtk.org/Wiki/VTK/Examples/Cxx/Qt/SideBySideRenderWindowsQt
>
> It works fine. Then I added one QT Checkbox. but the checkbox is not
> checkable. After debugging I realized that when I remove the following line
> of code, the checkbox starts working but QVTKOpenGLWidget does not
> display the sphere anymore. Is that something that I am missing here.
> QSlicer and other qwidgets also do not work if I keep the following like of
> code:
>
> QSurfaceFormat::setDefaultFormat(QVTKOpenGLWidget::defaultFormat());
>
>
> Thanks
>
> S
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180504/8a17c7a2/attachment.html>
More information about the vtkusers
mailing list