Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, March 2007
QAbstractSocket::error signal issues


Message 1 in thread

Hi all,

This is probably just a typo somewhere that I just cannot see, but the
following code,

socket = new QtSslSocket( QtSslSocket::Client );

connect( socket, SIGNAL( connectionVerificationDone(
QtSslSocket::VerifyResult, bool, const QString & )),
            this, SLOT( connectionVerificationDone(
QtSslSocket::VerifyResult, bool, const QString & )));

connect( socket, SIGNAL( error( QAbstractSocket::SocketError )),
         this, SLOT( errorHandler()));

socket->connectToHost( server_hostname, server_port );



results in,

QObject::connect: Cannot queue arguments of type
'QAbstractSocket::SocketError'
(Make sure 'QAbstractSocket::SocketError' is registed using
qRegisterMetaType().)


Huh? I even removed the argument from my errorHandler() slot, but this
doesn't help....

Has anyone encountered this?

- Adam

PS. BTW, QtSslSocket is from QtSolutions, but it is just derived from
QTcpSocket so this is not about the Solutions exactly.

--
 [ signature omitted ] 

Message 2 in thread

This appears to be an error in Qt 4.2.x branch.

http://www.trolltech.com/developer/task-tracker/index_html?method=entry&id=136108

--
 [ signature omitted ] 

Message 3 in thread

On Mon, 05 Mar 2007 14:54:34 -0600, Adam Majer <adamm@xxxxxxxxxxx>
wrote:

>This appears to be an error in Qt 4.2.x branch.
>
>http://www.trolltech.com/developer/task-tracker/index_html?method=entry&id=136108

What Qt version are you using exactly? I used Qt solution's
QtSslSocket correctly with Qt 4.2.0... if I remember correctly i
tested that code up to Qt 4.2. I might be wrong as I am no longer
working on that project.
Anyway, I see no problems in your code so this might be a bug in Qt
4.2.SOMETHING.

--
 [ signature omitted ]