Ask Your Question

QT4 gui interface

asked 2012-04-01 19:41:40 -0500

opcode gravatar image

updated 2014-01-28 17:11:50 -0500

ngrennan gravatar image

Hi the past few days I've been trying to make a simple gui using Qt4 to send a msg when pressing a button and to receive an int value from a topic and display it on a label or something.

I have successfully built the qt gui using rosmake as a standalone program but i dont know exactly which steps to take to integrate a ros node in the gui.

I looked through all the tutorials(eros qt and wiki) you have here and most questions. The eros examples do provide an idea but no luck with making it work.

Does anyone have any ideas, sample code or steps needed to combine a qt app along with ros node.

Thanks in advance!

edit retag flag offensive close merge delete


Hi I wont to try the same. please can you tell me the steps you need to combine qt app with ros node? I could compile it with make. But I dont know how to run it? When i run it with ./qfoo it gives me bash: ./qfoo: No such file or directory

Astronaut gravatar image Astronaut  ( 2013-12-01 19:00:53 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2012-04-02 04:45:42 -0500

opcode gravatar image

To answer my own question. I overlooked one of the tutorials.

I just typed: " rosrun qt_create roscreate-qt-pkg qfoo "

That finally gives a clean working node with a gui!!

edit flag offensive delete link more


How do you run the qfoo package??

Astronaut gravatar image Astronaut  ( 2013-12-01 19:53:09 -0500 )edit

answered 2018-12-18 01:36:52 -0500

pavankumarbn gravatar image

updated 2018-12-24 01:02:08 -0500

  1. $ sudo apt-get install qt-sdk - to install QT
  2. $ sudo apt-get install python-qt4 pyqt4-dev-tools - to install Python bindings for Qt cross-platform

After 1 and 2, Create required UI using QtCreater.

  1. $ pyuic4 -x filename.ui -o

  2. In integrate ROS code to interact with respect to UI Clicks

Follow this Tutorial series

edit flag offensive delete link more


Please don't post link-only answers, this leaves the answer to be not self-contained (also seems a little spammy too tbh as you've post the exact same answer to multiple questions). Please update your answer with the all of the relevant information to answer the question.

jayess gravatar image jayess  ( 2018-12-18 05:58:30 -0500 )edit

Thank you! I have updated the answer

pavankumarbn gravatar image pavankumarbn  ( 2018-12-24 01:02:19 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-04-01 19:41:40 -0500

Seen: 714 times

Last updated: Dec 24 '18