connect(socket, SIGNAL(error(QAbstractSocket::SocketError)), this, SLOT(erreurSocket(QAbstractSocket::SocketError))); I tried connect(socket, &QTcpSocket::error, this, &FenClient::erreurSocket); without success: candidate function not viable: no overload of 'error' matching 'const char*' ...
You did not pass a QVariant, so this overload can never be taken. In fact, when you pass a QString as first argument, the second overload is still not viable and you should get a compiler error. My guess is that you are compiling with Microsoft VC and what you are observing is no...
本人在职是几个项目的项目经理(技术经理),直接向CTO和CEO汇报。受委托制作了一份C++(客户端)工程师应具备的技能,在此分享给大家,欢迎批评指正。 C++技能树 PS:前司正在推行文档的版本化管理,工作中文档优先使用markdown、plantuml等文本文件输出。上图内容使用plantuml编写,文件源码:C++技能树.puml AD:【国外VPS...