Hey all,

I have a problem using connect. Currently i am using the QXmpp library to make chat a program that can be used over the google network.

Now i am following there examples to create a basic application, specifically this example http://qxmpp.googlecode.com/svn/trun...les/GuiClient/ .

In there constructor they have this line of code:

Qt Code:
  1. check = connect(&m_xmppClient.rosterManager(),
  2. SIGNAL(rosterChanged(const QString&)),
  3. this, SLOT(rosterChanged(const QString&)));
To copy to clipboard, switch view to plain text mode 

Where m_xmppClient is:
Qt Code:
  1. QXmppClient m_xmppClient;
To copy to clipboard, switch view to plain text mode 

That should return this.

But when i do this in my application:
Qt Code:
  1. connect(&chatClient.rosterManager(), SIGNAL(rosterReceived()), this, SLOT(rosterReceived()));
To copy to clipboard, switch view to plain text mode 

With chatClient being:
Qt Code:
  1. QXmppClient chatClient;
To copy to clipboard, switch view to plain text mode 

I get the following error:
Qt Code:
  1. ../ChatApp/maindialog.cpp: In member function 'void mainDialog::createActions()':
  2. ../ChatApp/maindialog.cpp:56: error: no matching function for call to 'mainDialog::connect(QXmppRosterManager*, const char*, mainDialog* const, const char*)'
  3. e:/Qt/2010.05/qt/include/QtCore/../../src/corelib/kernel/qobject.h:198: note: candidates are: static bool QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)
  4. e:/Qt/2010.05/qt/include/QtCore/../../src/corelib/kernel/qobject.h:313: note: bool QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const
To copy to clipboard, switch view to plain text mode 

But i don't get this error on there example

Regards

Eekhoorn12