PDA

View Full Version : how to read jpeg file from socket and show it on a widget



saman_artorious
24th July 2013, 04:38
I always showed a jpeg file within widget or label using their address in the local system. This time, I want to

read a jpeg file from tcp socket and show the image, is there any functions for doing that?

ChrisW67
24th July 2013, 05:08
read a jpeg file from tcp socket and show the image, is there any functions for doing that?
Yes.
QIODevice::readyRead(), QIODevice::read(), QByteArray, QPixmap::loadFromData().