Is it possible to make the Qt-ros-pkg blank?
Hi I'm new in Qt creator and ROS, I just download qt-ros-pkg recently and found out that it actually has logging part already, however, what I need is a blank main_window, where I am able add things in it. I actually make the code build perfectly and run perfectly, but it shows nothing. and here is my code.
Main_window.hpp
/**
* @file /include/qtros/main_window.hpp
*
* @brief Qt based gui for qtros.
*
* @date November 2010
**/
/**
* @file /include/qtros/main_window.hpp
*
* @brief Qt based gui for qtros.
*
* @date November 2010
**/
#ifndef qtros_MAIN_WINDOW_H
#define qtros_MAIN_WINDOW_H
#include <QtGui/QMainWindow>
#include "ui_main_window.h"
#include "qnode.hpp"
namespace Ui {
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = 0);
~MainWindow();
private Q_SLOTS:
void on_pushButton_clicked();
private:
Ui::MainWindowDesign ui;
};
}
#endif // MAINWINDOW_H
main.cpp
/**
* @file /src/main.cpp
*
* @brief Qt based gui.
*
* @date November 2010
**/
/*****************************************************************************
** Includes
*****************************************************************************/
#include <QApplication>
#include "../include/qtros/main_window.hpp"
#include "ui_main_window.h"
#include <QtGui>
/*****************************************************************************
** Main
*****************************************************************************/
int main(int argc, char **argv)
{
QApplication app(argc, argv);
return 0;
}
main_window.cpp
/**
* @file /src/main_window.cpp
*
* @brief Implementation for the qt gui.
*
* @date February 2011
**/
/*****************************************************************************
** Includes
*****************************************************************************/
#include "../include/qtros/main_window.hpp"
#include <iostream>
#include <QtGui>
#include <QMessageBox>
namespace Ui {
using namespace Qt;
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent)
{
ui.setupUi(this);
}
MainWindow::~MainWindow() {}
}
void Ui::MainWindow::on_pushButton_clicked()
{
}
Application Output
Starting /home/piaoqingmei/catkin_ws/src/build-qtros-Desktop_GCC_x86_64bit_in_usr_bin-Default/devel/lib/qtros/qtros...
/home/piaoqingmei/catkin_ws/src/build-qtros-Desktop_GCC_x86_64bit_in_usr_bin-Default/devel/lib/qtros/qtros exited with code 0