Hi, I'm trying to make a simplest program people have ever seen...

Here it is main.cpp:
Qt Code:
  1. #include <QApplication>
  2. #include <QDialog>
  3. #include "chala.h"
  4.  
  5. int main(int argc, char *argv[])
  6. {
  7. QApplication app(argc, argv);
  8.  
  9. Ui::chala ui;
  10. QDialog *dialog = new QDialog;
  11. ui.setupUi(dialog);
  12. dialog->show();
  13. return app.exec();
  14. }
To copy to clipboard, switch view to plain text mode 
chala.h:

Qt Code:
  1. #ifndef CHALA_H
  2. #define CHALA_H
  3. #include <QDialog>
  4. #include "ui_chala.h"
  5.  
  6. class chala : public QDialog, public Ui::chala
  7. {
  8. Q_OBJECT
  9.  
  10. public:
  11. chala(QWidget *parent = 0);
  12.  
  13. public slots:
  14. void srutututu();
  15. void majtki();
  16.  
  17. };
  18. #endif
To copy to clipboard, switch view to plain text mode 



and chala.cpp :

Qt Code:
  1. #include <QtGui>
  2.  
  3. #include "chala.h"
  4.  
  5. chala::chala(QWidget *parent)
  6. : QDialog(parent)
  7. {
  8. setupUi(this);
  9.  
  10. connect(pushButton, SIGNAL(clicked()), this, SLOT(srutututu()));
  11. connect(pushButton_2, SIGNAL(clicked()), this, SLOT(majtki()));
  12.  
  13. }
  14. void chala::srutututu()
  15. {
  16. qDebug() << "slot 1";
  17. lineEdit->setText("new content");
  18. }
  19. void chala::majtki()
  20. {
  21. label_2->setText("elo 6700");
  22. }
To copy to clipboard, switch view to plain text mode 

and 'ive done a simpliest window in designer with 4 pushbuttons lineEdit and label.... :

piece of ui_chala.cpp
Qt Code:
  1. QObject::connect(pushButton, SIGNAL(clicked()), lineEdit, SLOT(hide()));
  2. QObject::connect(pushButton_2, SIGNAL(clicked()), lineEdit, SLOT(show()));
To copy to clipboard, switch view to plain text mode 

When i'm creating signal slot show/hide in designer everything works fine!
But when i'm trying to use my own slot(srutututu() and majtki()) actually nothing happens..
in my opinion signal is even not emited. So what am i doing wrong ?