Does any one know how to get data from Udp Multicast Receiver in the Mdi child window?
I am using the Qt5.2.1 in Centos6.5 machine. Currently, if I place the QUdpSocket in the main window, the slot "processPendingDatagram" could be triggered when the readReady signal is emitted. But, if I put the QUdpSocket in the child-window and tried to program a MDI applications, the QUdpSocket can not trigger the child-window.
My child-window is a QWidget window.
The codes are in child-window's default constructor:
QUdpSocket *udpSocket = new QUdpSocket;
udpSocket->bind(...);
udpSocket-> jointMulticastGroup(...);
connect(udpSocket, SIGNAL((readyRead()), this, SLOT(processPendingDatagrams()));
When I open the child-window, I could see the UpdSocket opend correctly. I knew the data is there, but never got into "processPendingDatagram".
I would like to know how I could fix this problem?
Thanks in advanced!
Bookmarks