[Qt-interest] Transferring a QPixmap through QTcpSocket

sarvesh saran aquarian.thunder at gmail.com
Thu Apr 7 13:34:32 CEST 2011


On Thu, Apr 7, 2011 at 4:30 PM, Joshua W Joseph <
joshua at blueprint-group.co.ke> wrote:

> Hi All,
>
> I have two simple applications which are network based. The 'server' takes
> a screenshot of its computer. When a 'client' connects, it will receive the
> captured image. These are basically the fortune server/client examples
> modified to transmit images instead of text.
>
>
>
> The client receives some data, but how to I:
>     1. Ensure that all of the sent data is received, and
>

       your code is ensuring this already.



>     2. Convert the received data into a QPixmap so that it can be
> displayed.
>

the operator>> takes care of that (
http://doc.qt.nokia.com/latest/qpixmap.html#operator-lt-lt-101).....its all
there in your code!

thanks,
Sarvesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110407/89c598fd/attachment.html 


More information about the Qt-interest-old mailing list