@@ -46,9 +46,9 int main(int argc, char *argv[]) | |||
|
46 | 46 | chartView->setRenderHint(QPainter::Antialiasing); |
|
47 | 47 | chartView->chart()->setTitle("Donut with a lemon glaze (100g)"); |
|
48 | 48 | chartView->chart()->addSeries(series); |
|
49 |
chartView->chart()->legend()->setAlignment(Qt::Align |
|
|
49 | chartView->chart()->legend()->setAlignment(Qt::AlignBottom); | |
|
50 | 50 | chartView->chart()->setTheme(QChart::ChartThemeBlueCerulean); |
|
51 |
|
|
|
51 | chartView->chart()->legend()->setFont(QFont("Arial", 7)); | |
|
52 | 52 | //![2] |
|
53 | 53 | |
|
54 | 54 | //![3] |
General Comments 0
You need to be logged in to leave comments.
Login now