Skip to content
QtWS25 Last Chance
  • 0 Votes
    5 Posts
    2k Views
    C
    @Pablo-J-Rogina Accidentally found needed code in QT sources. It returns all the cookies one by one. QVariant hdr = rq.header(QNetworkRequest::CookieHeader); QList<QNetworkCookie> cookies = qvariant_cast<QList<QNetworkCookie> >(hdr); QList<QNetworkCookie>::ConstIterator it = cookies.begin(), end = cookies.end(); for ( ; it != end; ++it) { qDebug() << it->name(); }
  • Problem in While loop

    Unsolved Mobile and Embedded qt c++ embedded qt websocketserver grid encoder
    2
    0 Votes
    2 Posts
    2k Views
    RajeeshRaveendranR
    Hi, there are 2 possible cases: If you are sure that void DistanceThread::run() exit after first iteration then you are setting "flagforbreak" or "diststop" in between. So could you please check the slots of those signals which you are emitting? (May be the flag set from there). DistanceThread::run() is still executing but your conditions (i saw complex nested "If"s there :) ) may not meet anytime.(Hope U will debug it ensure that. Regards, Rajeesh Raveendran
  • Trouble with secure websockets

    Unsolved General and Desktop websocketserver websocket ssl
    8
    0 Votes
    8 Posts
    5k Views
    H
    I didn't. But also it didn't fixed the error. The QT client can connect to the server with wss. The Webclient can't connect to the server with wss. But an echo test to "wss://echo.websocket.org" is successfully, so the browser is okay. The question is, what's the difference between Qt secure websocket and the other solutions? Is it may some different SSL/TSL config? I'm using QSsl::TlsV1SslV3
  • 0 Votes
    4 Posts
    2k Views
    SGaistS
    You're welcome ! Since you have what you need now, please mark the thread as solved using the "Topic Tool" button so that other forum members may know a solution has been found :) Also, while browsing the forum, consider up-voting answers that helped you. That will make them easier to find for other forum users :)
  • 0 Votes
    2 Posts
    2k Views
    T
    @TeunGri173 I did a test against http://www.websocket.org/echo.html with QWebView in my application. This test is working correctly. So there is someting with the QWebSocketServer I use. The only I do is: ws = new QWebSocketServer("", QWebSocketServer::NonSecureMode, this); ws->listen( QHostAddress::Any, 13031); And of course connect to the newConnection() signal. resume test results: Backend Frontend Result websocket.org QWebView OK websocket.org FireFox OK websocket.org Chrome OK QWebSocketServer QWebView FAIL QWebSocketServer FireFox OK QWebSocketServer Chrome OK Only the combination QWebSocketServer / QWebView failed. Any hints wat to configure in QWebSocketServer ? Or could it possibly be a bug ? Thanks in advance for your info.
  • 0 Votes
    4 Posts
    8k Views
    SGaistS
    What version of Qt are you using ? And how did you install it ?