using QwtPlotMultiBarChart
Brought to you by:
rathmann
|
From: ginu s. <sam...@gm...> - 2019-07-03 17:08:43
|
Hello,
I am trying to use QwtPlotMultiBarChart in Qt Widgets application.
Tried putting the following code in MainWindow.
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
{
setMinimumSize(500,500);
QwtPlotMultiBarChart *barChart = new QwtPlotMultiBarChart();
QVector <qreal> v1 = { 12.0, 15.6 };
QVector< QVector<double> > result;
result.push_back(v1);
barChart->setSamples(result);
barChart->setStyle(QwtPlotMultiBarChart::Grouped);
}
But the application is crashing.
*Do i need to do something else to support the creation of of Bar chart.*
The .pro is changed to link to qwt as follows:
win32:INCLUDEPATH += "C:\Apps\Tech Dev\References\Qwt\include"
win32:LIBS += "C:\Apps\Tech Dev\References\Qwt\v140\qwt.lib"
Regards,
Ginu
|