
Originally Posted by
wysota
This code is Qt4 code.
Ok.
I get the following error on compile:
smtp.h: In constructor ‘Smtp::Smtp(const QString&, const QString&, const QString&, const QString&)’:
smtp.h:79: error: no match for call to ‘(QDebug) (const char [10])’
make: *** [main.o] Error 1
smtp.h: In constructor ‘Smtp::Smtp(const QString&, const QString&, const QString&, const QString&)’:
smtp.h:79: error: no match for call to ‘(QDebug) (const char [10])’
make: *** [main.o] Error 1
To copy to clipboard, switch view to plain text mode
Here is the problem:
if( socket->waitForConnected( 30000 ) )
qDebug()("connected");
if( socket->waitForConnected( 30000 ) )
qDebug()("connected");
To copy to clipboard, switch view to plain text mode
And won't work with
if( socket->waitForConnected( 30000 ) )
qDebug() << "connected";
if( socket->waitForConnected( 30000 ) )
qDebug() << "connected";
To copy to clipboard, switch view to plain text mode
Bookmarks