Hi,
A really newbie question.
Qt Code:
  1. QPushButton* buttonRun = new QPushButton(QString("Run"));
  2.  
  3. QGridLayout* layout_ = new QGridLayout;
  4. layout_->addWidget(buttonRun,1,0);
  5. widget->setLayout(layout_);
  6.  
  7. connect(buttonRun,SIGNAL(clicked()),this,SLOT(runAlgorithm()));
To copy to clipboard, switch view to plain text mode 

connect() returns true, but the slot is never called. I'm pretty sure the signal is emitted, because

Qt Code:
  1. connect(buttonRun,SIGNAL(clicked()),qApp,SLOT(aboutQt()));
To copy to clipboard, switch view to plain text mode 
works. I also think that the slot is defined properly, because if I do something like:
Qt Code:
  1. QObject::connect(this,SIGNAL(runThisBastard()),this,SLOT(runAlgorithm()));
  2. emit runThisBastard();
To copy to clipboard, switch view to plain text mode 
the slot is called properly.

Just in case here's my definition of the class:
Qt Code:
  1. class A: public QObject, public IHasPropertiesPage
  2. {
  3. Q_OBJECT
  4. public:
  5. ....
  6. public slots:
  7. void runAlgorithm ();
  8. ...
  9. };
To copy to clipboard, switch view to plain text mode 

Any help would be greatly appreciated.