diff --git a/example/piechart/main.cpp b/example/piechart/main.cpp index 18b737c..d60cb4d 100644 --- a/example/piechart/main.cpp +++ b/example/piechart/main.cpp @@ -30,6 +30,7 @@ int main(int argc, char *argv[]) qDebug() << s->angle() << s->span() << s->percentage(); QChartView* chartView = new QChartView(&window); + chartView->setRenderHint(QPainter::Antialiasing); chartView->addSeries(series); chartView->setChartTitle("simple piechart"); chartView->setChartTheme(QChart::ChartThemeIcy); diff --git a/src/piechart/pieslice.cpp b/src/piechart/pieslice.cpp index a46a533..bb241c3 100644 --- a/src/piechart/pieslice.cpp +++ b/src/piechart/pieslice.cpp @@ -49,7 +49,6 @@ QPainterPath PieSlice::shape() const void PieSlice::paint(QPainter* painter, const QStyleOptionGraphicsItem* /*option*/, QWidget* /*widget*/) { - painter->setRenderHint(QPainter::Antialiasing); painter->setPen(m_pen); painter->setBrush(m_brush); painter->drawPath(m_path); diff --git a/src/piechart/pieslicelabel.cpp b/src/piechart/pieslicelabel.cpp index c2a9715..c6267be 100644 --- a/src/piechart/pieslicelabel.cpp +++ b/src/piechart/pieslicelabel.cpp @@ -18,8 +18,6 @@ PieSliceLabel::PieSliceLabel(QGraphicsItem* parent) void PieSliceLabel::paint(QPainter *painter, const QStyleOptionGraphicsItem* /*option*/, QWidget* /*widget*/) { - painter->setRenderHint(QPainter::Antialiasing); - painter->setPen(m_pen); painter->drawPath(m_armPath);