gt.beta2
16th March 2009, 18:43
Hi!
About this code:
QByteArray datagram;
QDataStream out(&datagram, QIODevice::WriteOnly);
out.setVersion(QDataStream::Qt_4_1);
out << x << y << z;
udpSocket->writeDatagram(datagram, QHostAddress::Broadcast, 45454);
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
About this code:
QByteArray datagram;
QDataStream out(&datagram, QIODevice::WriteOnly);
out.setVersion(QDataStream::Qt_4_1);
out << x << y << z;
udpSocket->writeDatagram(datagram, QHostAddress::Broadcast, 45454);
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