Qwt oscilloscope program inclusion in qt program

i am trying to use qwt oscilloscope program for my application . The aim of my project is to display the datas coming from the serial port program done in qt in the oscilloscope program of qwt.
The problem which i want to solve is the following:
how to display some external data in the oscilloscope program of qwt.
Thanks in advance