ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Working with QtCharts::QChartView
Posted by Cliff on Oct-24-2016 12:18
How do you use QtCharts::QChartView as container of a chart director chart?

  Re: Working with QtCharts::QChartView
Posted by Cliff on Oct-24-2016 17:05
or, how do you use QChartViewer class in Qt designer?

  Re: Working with QtCharts::QChartView
Posted by Peter Kwan on Oct-24-2016 23:21
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