
Originally Posted by
wysota
What is the exact message you get? Could you also show us the header of the class containing the slot?
Following is the code Snippet where the SIGNAL SLOT is connected ::
ftp = new QFtp(this);
connect(ftp, SIGNAL(commandFinished(int, bool)), this, SLOT(ftpCommandFinished(int, bool)));
connect(ftp, SIGNAL(dataTransferProgress(qint64, qint64)), this, SLOT(updateProgressBar(qint64, qint64)));
QMessageBox::information(this, tr("FTP"), tr("Trouble Connecting to the Server. \nPlease try later."));
ftp->connectToHost("192.168.36.251");
timer = new QTimer(this);
connect(timer, SIGNAL(timeout()), this, SLOT(testNetwork()));
timer->setSingleShot(1);
timer->start(2000);
progressDialog->setLabelText(tr("Connecting to the Host"));
progressDialog->exec();
the exact error Message is ::
QObject::connect: No such slot projectDC::testNetwork()
the header file contains ::
private slots:
void ftpCommandFinished ( int, bool );
void updateProgressBar( qint64, qint64 );
void cancelDownload();
void testNetwork();
Anything else ?
Bookmarks