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

Hello there,

I found the solution of your question.

file(GLOB QT_RESOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} resources.qrc)

You need to this line just above qt5_add_resources(RESOURCES_RCC ${RESOURCE}) in your cmake file. You also need to put your resource folder into the main directory. For example: src/work_project/<resource folder> I hope you will be able to fix problem with this.

Hello there,

I found the solution of your question.

file(GLOB QT_RESOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} resources.qrc)

You need to this line just above qt5_add_resources(RESOURCES_RCC ${RESOURCE}) in your cmake file. You also need to put your resource folder into the main directory. For example: src/work_project/<resource folder> I hope you will be able to fix problem with this.

I think everother think with your code is perfect. I have tried it myself.

image description

Hello there,

I found the solution of your question.

file(GLOB QT_RESOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} resources.qrc)

You need to this line just above qt5_add_resources(RESOURCES_RCC ${RESOURCE}) in your cmake file. You also need to put your resource folder into the main directory. For example: src/work_project/<resource folder> I hope you will be able to fix problem with this.

I think everother think with your code is perfect. I have tried it myself.

image description

if you have any question feel free to drop commet.

Hello there,

I found the solution of your question.

file(GLOB QT_RESOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} resources.qrc)

You need to this line just above qt5_add_resources(RESOURCES_RCC ${RESOURCE}) in your cmake CMake file. You also need to put your resource folder into the main directory. For example: src/work_project/<resource folder> I hope you will be able to fix the problem with this.

I think everother think with your every other code is perfect. I have tried it myself.

image description

if you have any question questions feel free to drop commet.comment.