Robotics StackExchange | Archived questions

Update project tree of ROS package in QT creator

I'm using QT creator to edit my ROS package. However, when I want to create a new source file within my package using

roscd my_package
cd src
touch newFile.cpp

in my Terminal and then in QT-creator I add the following lines to my CMakeLists.txt

addexecutable(newExec src/newFile.cpp)
target
linklibraries(newExec ${catkinLIBRARIES})
adddependencies(newExec mypackagegeneratemessages_cpp)

and hit the "Build Now"-button, the project-tree is not updated even though it should. The only way, that I can make the file show up is by shutting down qtcreator and reopen it. How can I have this done more conveniently (/what am I doing wrong)?

Asked by max11gen on 2018-11-15 05:23:56 UTC

Comments

Just a thought, if you create the file in QT-creator it will probably fit into its work flow better.

Asked by PeteBlackerThe3rd on 2018-11-15 06:16:03 UTC

This question / issue might be solved now, the ros-qtc-plugin has gone through quite some improvements over the past year.

Asked by Mbuijs on 2019-10-21 05:59:39 UTC

Answers