hi
in the following code the signal is not connected to slot.

Qt Code:
  1. #include <QApplication>
  2. #include <QtGui>
  3.  
  4. class push : public QPushButton
  5. {
  6.  
  7. public slots:
  8. void hi();
  9.  
  10. public:
  11. push(QWidget *parent=0);
  12. };
  13.  
  14.  
  15. push::push(QWidget *parent) :
  16. QPushButton(parent)
  17. {
  18. connect(this, SIGNAL(clicked()), this, SLOT(hi()));
  19. }
  20.  
  21. void push::hi()
  22. {
  23. qDebug()<<"hioo";
  24. }
  25.  
  26. int main(int argc, char *argv[])
  27. {
  28. QApplication app(argc, argv);
  29.  
  30. push W;
  31. W.show();
  32.  
  33. return app.exec();
  34. }
To copy to clipboard, switch view to plain text mode 

this code compiles and executes but gives the warning
Object::connect: No such slot QPushButton::hi()

where did the code wnt wrong