##// END OF EJS Templates
A few more warnings removed from examples
A few more warnings removed from examples

File last commit:

r486:7ab45bf9f776
r613:36ecec1e9bf9
Show More
main.cpp
41 lines | 1021 B | text/x-c | CppLexer
Michal Klocek
Refactors qchart , adds line animation...
r131 #include <QApplication>
#include <QMainWindow>
#include <qchartview.h>
Michal Klocek
Rename QLineChartSeries to QLineSeries
r349 #include <qlineseries.h>
Michal Klocek
Refactors qchart , adds line animation...
r131 #include <qchart.h>
#include <cmath>
Michal Klocek
update dynamiclinechart example
r133 #include "wavegenerator.h"
Michal Klocek
Fix previous broken commit
r145 #include <QGLWidget>
Michal Klocek
Refactors qchart , adds line animation...
r131
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QMainWindow window;
Michal Klocek
Rename QLineChartSeries to QLineSeries
r349 QLineSeries* series0 = new QLineSeries();
Michal Klocek
Refactors qchart , adds line animation...
r131 QPen blue(Qt::blue);
blue.setWidth(3);
series0->setPen(blue);
Michal Klocek
Rename QLineChartSeries to QLineSeries
r349 QLineSeries* series1 = new QLineSeries();
Michal Klocek
Refactors qchart , adds line animation...
r131 QPen red(Qt::red);
red.setWidth(3);
series1->setPen(red);
Michal Klocek
update dynamiclinechart example
r133 WaveGenerator generator(series0,series1);
Michal Klocek
Refactors qchart , adds line animation...
r131
QChartView* chartView = new QChartView(&window);
Michal Klocek
Fix previous broken commit
r145 chartView->setViewport( new QGLWidget() );
Michal Klocek
Refactors qchart , adds line animation...
r131 chartView->setRenderHint(QPainter::Antialiasing);
Michal Klocek
Fix commit 7b90ec69ce9a3353820d295c222ef3f79537484d
r391 chartView->setAnimationOptions(QChart::AllAnimations);
Michal Klocek
Adds font handling for chart's titile...
r192 chartView->setChartTitle("This is wave generator buahha.");
Michal Klocek
Refactors qchart , adds line animation...
r131 chartView->addSeries(series0);
chartView->addSeries(series1);
window.setCentralWidget(chartView);
window.resize(400, 300);
window.show();
return a.exec();
}