Qt QML Integrated GUI for Robots
This package is built on the top of Qt5 and its python binding called PyQt5.
sudo apt install \
python-pyqt5.qtquick \
qtdeclarative5-controls-plugin \
qml-module-qtquick-dialogs
-
Create GUI using QML. (See example in
qml
directory) -
Load QML in RQT Plugin
rqt_qml $(rospack find rqt_qml)/qml/simple.qml
The launch file additionally defines LIBOVERLAY_SCROLLBAR
environment variable and set it to 0 to avoid QT GTK+ bug on Ubuntu. If you do not have any scrollbars in your QML graphical interface then the variable can be omitted.
To add your own QML plugins (either written in Python or C++) use <rqt_qml>
tag in export section of a package.xml
in your package, for instance:
<export>
<rqt_qml plugins="${prefix}/my_qml_plugins_dir"/>
</export>
If a relative path supplied to plugins
attribute, it will be treated as relative to Qt plugins directory, for example: