My Server draws images/graphic Objects recieved from Client on its QGraphicsScene It works well on IDE.
To test in different machines I copied the dlls and the exe in the same folder and ran the exe.
All network communications went well and I can confirm Client sending graphics Objects But Serevr is not drawing them in GraphicsScene
But it works smoothly when I run in QtCReator IDE.
EDIT:
Now it seems image packets gets malformed when running in exe
I did the following to test.
- Client stores image packets in scan folder
- Client sends the image packet and makes beep (if successfully saved)
- Server receives image packets and saves in scan folder
- server playes beep (if NOT successfully saved)
When I run both (client and server) in IDE
Client beep’s and server don’t
and I see images scan folder of both machines
When I run Client in IDE but server as exe
Client beeps and stores images
BUT Server beeps and cannot store image in its scan folder
server cannot save the image because QImage::save() returns false
Based on the comments, it seems you are missing the
JPEGdllsYou need to copy The
jpegdlls directory in the folder you are keeping exe. you will find it in yourimageformatsdirectoryqjpeg4.dllandqjpegd4.dll