hey guys.In my application i'm creating an instance of Dialogtest(a dialog i created).so whenever that dialog opens up and the user clicks on the find button it invokes finclicked() slot which will emit a signal .
I used the signal/slot connection mechanism to connect this emitted signal to a slot of the Mainwindow(parent of the dialog).
The code is compiling but when i run the app and press the find button of the dialog it gives the following error in Application output.



Object::connect: No such signal Dialogtest::csearch(const QString& a,Qt::CaseSensitivity cs)
Object::connect: (sender name: 'Dialogtest')
Object::connect: (receiver name: 'MainWindow')
Object::connect: No such signal Dialogtest::csearch(const QString& a,Qt::CaseSensitivity cs,const QString& c)
Object::connect: (sender name: 'Dialogtest')
Object::connect: (receiver name: 'MainWindow')


Dialogtest.h is:
Qt Code:
  1. .........
  2. signals:
  3. void csearch(const QString&,Qt::CaseSensitivity cs);
  4. void csearch(const QString&,Qt::CaseSensitivity cs,const QString&);
  5.  
  6. private slots:
  7. void enablefind();
  8. void findclicked();
  9. ........
To copy to clipboard, switch view to plain text mode 

Dialogtest.cpp
Qt Code:
  1. if(ui->replaceEdit->isEnabled()){
  2. rstring =ui->replaceEdit->text();
  3. emit csearch(fstring,cs,rstring);
  4. }
  5. else{
  6. emit csearch(fstring,cs);}
To copy to clipboard, switch view to plain text mode 

Mainwindow.h
Qt Code:
  1. protected slots:
  2. void sear(QString& c,Qt::CaseSensitivity cs,QString& x);
  3. void sear(QString& c,Qt::CaseSensitivity cs);
To copy to clipboard, switch view to plain text mode 

Mainwindow.cpp
Qt Code:
  1. //inside a function that opens a dialog;
  2. t=new Dialogtest(this);
  3. t->exec();
  4. QObject::connect (t,SIGNAL(csearch(const QString& a,Qt::CaseSensitivity cs)),this,SLOT(sear(const QString& c,Qt::CaseSensitivity cs)));
  5. QObject::connect (t,SIGNAL(csearch(const QString& a,Qt::CaseSensitivity cs,const QString& c)),this,SLOT(sear(const QString& a,Qt::CaseSensitivity cs,const QString& c)));
To copy to clipboard, switch view to plain text mode 

the slots sear() are defined in Mainwindow.cpp
plz help me with this.