Hi again,

Just wondering if anyone would mind having a look at an issue I am having and maybe point out where I am going wrong.

I have created a simple widget with a push button it Qt Designer, I have created Signals and Slots, clicked() and process_started() respectively. I am trying to run another Qt application when the push button is pressed.

However I keep getting compile errors which I cannot seem to resolve, so hopefully a fresh pair of eyes may be able to assist.

mainwindow.cpp:19: error: ISO C++ forbids declaration of ‘process_started’ with no type
mainwindow.cpp:19: error: prototype for ‘int mainwindow:rocess_started()’ does not match any in class ‘mainwindow’
mainwindow.h:25: error: candidate is: void mainwindow:rocess_started()
Qt Code:
  1. class mainwindow : public QMainWindow
  2. {
  3. Q_OBJECT
  4.  
  5. public:
  6. mainwindow();
  7. QProcess *process;
  8.  
  9. public slots:
  10. void process_started();
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. mainwindow::mainwindow()
  2. {
  3. process = new QProcess();
  4. widget.setupUi(this);
  5. }
  6.  
  7. mainwindow::process_started()
  8. {
  9. process->start("./home/i386-qt-rss");
  10. }
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. int main(int argc, char *argv[])
  2. {
  3. QApplication app(argc, argv);
  4. mainwindow w;
  5. w.show();
  6. return app.exec();
  7. }
To copy to clipboard, switch view to plain text mode 

Thanks very much for having look.

HS