Grab points from the socket to some container and then plot them.
It's very simple, take any example that comes with Qwt and you're good to go.