On sexta-feira, 22 de novembro de 2013 16:56:47, Ola Røer Thorsen wrote:
> Is this a bug in Qt, or did I not use the correct syntax? I recon this has
> to do with QAbstractSocket having the error() function as well as an error
> signal.

You did not use the correct syntax.

The compiler told you that the problem was that you did not select one of the 
overloads. QTcpSocket::error points to multiple functions and you need to 
select one only.

To do that, you need to cast the identifier to a specific signature.

    void (QAbstractSocket:: *sig)(QAbstractSocket::SocketError) =
        &QAbstractSocket::error;
    connect(tcp_socket, sig, this, &MyClass::tcpSocketError);

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to