ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Using setattr(sys, 'SELECT_QT_BINDING', 'pyside') works, if it is executed before the first import of python_qt_binding. But if your code is running as a rqt plugin, rqt has already imported python_qt_binding, so your plugin cannot change the binding anymore.

To run rqt_gui (and therefore your plugin) with a specific binding use the command line option '--qt-binding' or '-b':

rosrun rqt_gui rqt_gui --qt-binding=pyside

For more command line options see rosrun rqt_gui rqt_gui -h.

rqt will also choose PySide, if PyQt is not installed on the system.