Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Hello i have a little problem because i write program to comunicate with server but server always check only first if. What i must to do ?
if(socket->readLine() == "x") { xFunction(); } if(socket->readLine() === "y) { yFunction(): }
Hi, the readLine() functions reads ("eats") one line from the server, so try something like this instead:
QString sLine = socket->readLine()->data(); if(sLine == "x") { xFunction(); } if(sLine === "y) { yFunction(): }
thanks it working now :)
@R4leY so please close this topic as SOLVED. Thanks