Hi, I'm having problem passing arguments in SLOT:

Qt Code:
  1. private slot:
  2. void connectToHost(QString, quint32);
To copy to clipboard, switch view to plain text mode 

and I'm calling it like this:

Qt Code:
  1. connect(connectButton, SIGNAL(clicked()), this, SLOT(connectToHost(host, port)));
To copy to clipboard, switch view to plain text mode 

while the connectToHost is:

Qt Code:
  1. void MainWindow::connectToHost(QString host, quint32 port) {
  2. /* create and connect to the socket */
  3. socket = new QTcpSocket(this);
  4. socket->connectToHost(host, port, QIODevice::ReadOnly);
  5. }
To copy to clipboard, switch view to plain text mode 

Problem is:

Object::connect: No such slot MainWindow::connectToHost(host,port)