ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
In any Qt application you can only modify UI elements from the Qt event loop.
When integrating with ROS you therefore have to be careful to not touch UI elements from a ROS callback (since it is called from a ROS thread). Whenever possible you should use model / view based UI in Qt because you are free to interact with the model from any thread. Otherwise you commonly do something like the following to perform the UI modification in the Qt event loop:
You should find similar patterns in many existing rqt plugins.