1.安装qt
sudo apt-get install build-essential libgl1-mesa-dev libevent-pthreads-2.0.5 doxygen xorg-dev
cd ~/tools/
wget http://download.qt.io/archive/qt/5.8/5.8.0/qt-opensource-linux-x64-5.8.0.run
chmod +x ~/tools/qt-opensource-linux-x64-5.8.0.run
2.安装ros_qtc_plugin插件
sudo add-apt-repository ppa:levi-armstrong/qt-libraries-xenial
sudo add-apt-repository ppa:levi-armstrong/ppa
sudo apt update
sudo apt install qt57creator-plugin-ros
之后在dash中选择qt5.9.1 ,打开qt后,在other Project有 ros workspace 选择即可