Solved UI start QTcpSocket::listen invalid
-
I have made a file server base on QTcpSocket, it can work fine.
https://github.com/sonichy/QtFileServer/
But after I move it into ui to start, it has no response and no error.
https://github.com/sonichy/HTYServer
-
You are another victim of the awful fortuneclient/server examples. The community tried to make a better example for tcp comunication using Qt, you can find it on the qt wiki
- You are leaking every single
QSocket
QThread
doesn't work that way.QThread
in not the thread, it's a wrapper around the thread that lives in the thread that spaned it. All slots of aQThread
subclass will be executed in the main thread- You are formatting an html document as a response to your client. Does your gui handle them, what is it supposed to do
- You are leaking every single
-
@VRonin I move the content of QThread into mainwindow.cpp, it worked now !