[vtkusers] R: Re: QVTKWidget in QT GUI freezes other QWidgets
bartolomei-luca at virgilio.it
bartolomei-luca at virgilio.it
Tue Oct 17 03:22:21 EDT 2017
Hello Elvis,
thanks for your reply.
I don't have the gui avaiable right now; I will send a picture as soon as I can.
To answer your question: yes, if I remove the QVTKWidget and replace it with QWidget everything works. The problems occur only when the QVTKWidget is present.
The GUI is built to work in this way:1) start showing stuff on the QWidget;2) After a while, the QVTKWidget shows some other stuff.
The QWidget is showing some interactive scene and it uses a library ("librviz" - for ROS users) based on Ogre and OpenGL. Could the problem happen because the QVTKWidget interfere with the already existing OpenGL context?
I don't know if this is the cause, because it is sufficient to have the QVTKWidget on the Gui to make the QWidget freeze.
Anyway, I have looked at this example: https://www.vtk.org/Wiki/VTK/Examples/Cxx/GLUTbut no luck so far. Maybe is a problem of drivers (I have an Nvidia GeForce GTX 950M on Ubuntu 14.04 LTS).
Best,Luca
----Messaggio originale----
Da: "Elvis Stansvik" <elvis.stansvik at orexplore.com>
Data: 17-ott-2017 8.36
A: <bartolomei-luca at virgilio.it>
Cc: "VTK Users"<vtkusers at vtk.org>
Ogg: Re: [vtkusers] QVTKWidget in QT GUI freezes other QWidgets
Den 13 okt. 2017 12:08 em skrev "bartolomei-luca at virgilio.it" <bartolomei-luca at virgilio.it>:Hello everyone!
I have a problem with the QT GUI I am creating. Basically, I have an interactive QWidget, a QVTKWidget and a "Quit" button.
When I launch my app, I can interact with the QWidget without any problem (I have a 3D interactive scene, where I can zoom and rotate).
However, as soon as the QVTKWidget becomes "active" (i.e. some function in my code start using it or if I click on it), both the QWidget and the QVTKWidget freeze. The app keeps on working, since the "Quit" button works as it should.
If I have a GUI with either the QWidget or the QVTKWidget (only one of them) everything works fine. The problem is if I try to include both of them at the same time.
Do you have any idea why this happens?
I don't have any immediate ideas. It would really help to see a small example where the problem occurs.
Does it work if you put two of your QWidgets in the application. I mean, if you remove the QVTKWidget and put another one of your QWidget where it was?
Elvis
Thanks a lot for you help.
_______________________________________________
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20171017/af6aa789/attachment.html>
More information about the vtkusers
mailing list