You didn't get my question. I asked you specifically -- how many times is readyRead() called for your file? Remove all content of the method and only put a debug statement that prints something and a call to socket->readAll(). Then run the program and see how many times the method is called for your file. Then sit down and think why it happens and how to change your code.
I can tell you what is going on. There is a class A that has a virtual method x() and class B that doesn't have that method and you are implementing B::x() hoping that whatever was calling A::x() will call B::x() now. This is not the case in C++. You need to subclass A and reimplement x() for it to be called.i replied to anda_skoa but he havnt replied back , i need him to reply to my question first to understand whats going on.
for now i connected the newConnection to another slot that will handle the work.
Bookmarks