PDA

View Full Version : Chart Widget



wirasto
23rd July 2009, 17:31
Who have a charts Widget ?. Widget for create a bar chart with data from mysql or postgresql.

tjm
23rd July 2009, 21:34
http://qwt.sourceforge.net/

wirasto
24th July 2009, 15:42
qwt can create barchart ?

Lykurg
24th July 2009, 16:25
If they are not so complicated it's not such a big deal to create a custom, own widget for that, using the paint event for drawing...

You could also have a look at Charts for Qt4 (http://www.wysota.eu.org/).

wirasto
14th August 2009, 15:52
If they are not so complicated it's not such a big deal to create a custom, own widget for that, using the paint event for drawing...

You could also have a look at Charts for Qt4 (http://www.wysota.eu.org/).


I get sample from http://www.wysota.eu.org/charts.html. I tried for add to my Dialog. But i always get crash.



ColumnChartView *cv=new ColumnChartView(this);
...
....
ui->myLayout->addWidget(cv);


ColumnChartView inherit from QAbstractItemView. And can't add to Dialog like a Widget ?

Lykurg
14th August 2009, 17:01
Is ui->myLayout valid? What does your debugger says?

wirasto
14th August 2009, 18:24
No :) myLayout just example.

I have a TextLabel on my Dialog. And Dialog use verticalLayout. btw, i use qt-creator.

Debuger ? I just run. And, after dialog show GNONE Bug Reporting tool will opening.