I’m writing a kind of “Remote Desktop” program and I got stuck with a few points.
I use QPixmap::grabWindow on the server side to capture the screenshot and send it to client, which in turn is written to QByteArray and is sent via QTcpSocket.
The size of the resulting QPixmap is too big and as you understand the application is time critical. Is there a way to optimize that?
I’m writing a kind of Remote Desktop program and I got stuck with a
Share
(In addition to Michael’s more detailed answer:) For compression you can use qCompress / qUncompress (which actually depends on Qt’s included zlib) http://qt-project.org/doc/qt-4.8/qbytearray.html#qUncompress