45 #include <QGridLayout>
46 #include <QSharedPointer>
47 #include <QtCharts/QChartView>
57 using namespace DISPLIB;
58 #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
59 using namespace QtCharts;
70 m_pChart =
new QChart();
71 m_pChart->setTitle(title);
72 m_pChart->setAnimationOptions(QChart::SeriesAnimations);
74 m_pAxis=
new QBarCategoryAxis();
75 m_pChart->legend()->setVisible(
true);
76 m_pChart->legend()->setAlignment(Qt::AlignBottom);
78 QChartView *chartView =
new QChartView(m_pChart);
79 chartView->setRenderHint(QPainter::Antialiasing);
81 QGridLayout* layout =
new QGridLayout();
83 layout->addWidget(chartView,0,0);
84 this->setLayout(layout);