Hi!
About this code:
out << x << y << z;
udpSocket
->writeDatagram
(datagram,
QHostAddress::Broadcast,
45454);
QByteArray datagram;
QDataStream out(&datagram, QIODevice::WriteOnly);
out.setVersion(QDataStream::Qt_4_1);
out << x << y << z;
udpSocket->writeDatagram(datagram, QHostAddress::Broadcast, 45454);
To copy to clipboard, switch view to plain text mode
I tried this with int, float, ... and it works.
Can i load an image from the images resource into x and the send it? If so what object should i use? QImage?
The final idea is to load the image into an object (label) in the receiver GUI.
Thanks
Bookmarks