Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.8.0
-
None
Description
I had an issue some time ago, described in the QTBUG-121562 (QHttpServer does not emit new WebSocket Connection() to my myclass::myslot()) that was solved (till Qt .6.7.x) with the following solution suggested by Ievgenii Meshcheriakov :
httpServer->route("/ws/", [](QHttpServerResponder &&respond)
{ auto _respond = std::move(respond); });
But now (Qt6.8.0) I got the error:
static assertion failed: ViewHandler arguments error: QHttpServerResponder can only be passed as a reference.
I did this:
httpServer->route("/ws/", [](QHttpServerResponder &respond)
{ auto _respond = std::move(respond); });
That solved the compiler error, but the SIGNAL is not emitted anymore.
connect(m_pHttpServer, &QHttpServer::newWebSocketConnection, this, &MyClass::incomingConnection);
I don´t know if it is a bug or just a change the way Qt6.8.0 works.
Any help is appreciated. Thanks.