Hi Cliff,
As QChartViewer is a subclass of QLabel, you can just put a QLabel on the Qt Form, and promote it to QChartViewer. (Right click on the QLabel, and select "Prompt to".)
If you also want the Qt Designer to handler the QChartViewer signals, after prompting the QLabel, you can add the signals you want to use to it. (Right click on the prompted QLabel, select "Change signals/slots", and add the signal you would like to use. For example, if you would like to use the mouseMovePlotArea(QMouseEvent*) signal, you just need to add this signal in "Change signals/slots".
Hope this can help.
Regards
Peter Kwan |