include QWidget
I am building a package (where I use mainly MoveIt! functionalities) where in a .cpp file I am including the headers listed below, which themselves include QWidget. I read a bit about what QWidget and Qt are, and it has little to do with what I want to do. I tried to add:
set( headers
include/moveit/motion_planning_rviz_plugin/motion_planning_display.h
include/moveit/motion_planning_rviz_plugin/motion_planning_frame.h
)
qt4_wrap_cpp(MOC_SOURCES ${headers})
Since those two are the headers which include Qt stuff. I still have the same problem:
fatal error: QWidget: No such file or directory
#include <QWidget>
I installed ros-indigo-qt-* but it didn't help. I found a QWidget and a QObject under /usr/include/qt4/, so I guess I should find a way to link those to my package. Am I right? And what should I do?
Those header files that you are including (In your CMakeLists.txt file I assume) contain Qt Panel implementations that are used by rviz but they grab the moveit capabilities from other lower level moveit libraries.