Hy,

I'm a bit new to Qt and C++ (even if I have program in different languages).

I've got a search box with this in (searchFiled is a QLineEdit):
Qt Code:
  1. connect(this->m_ui->searchField, SIGNAL(textEdited(const QString &)),
  2. this, SIGNAL(searchStringChanged(const QString &)));
To copy to clipboard, switch view to plain text mode 

In my main window constructor I dot that:
Qt Code:
  1. m_searchdialog = new searchDialog();
  2. m_searcher = new searcher();
  3.  
  4. connect(m_searchdialog, SIGNAL(searchStringChanged(const QString &)),
  5. m_searcher, SLOT(newResearch(const QString &)));
To copy to clipboard, switch view to plain text mode 

And when I compile I've got this error:
Qt Code:
  1. mainwindow.cpp:19: error: no matching function for call to ‘mainWindow::connect(searchDialog*&, const char [38], searcher*&, const char [30])’
  2.  
  3. /usr/local/Trolltech/Qt-4.1.4/include/QtCore/qobject.h:176: note: candidates are: static bool QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)
  4. /usr/local/Trolltech/Qt-4.1.4/include/QtCore/qobject.h:276: note: bool QObject::connect(const QObject*, const char*, const char*, Qt::Connection Type) const
To copy to clipboard, switch view to plain text mode 

Any idea ?
Because I'm stuck for 2 hours... I'm a little bit bored now :P