PDA

View Full Version : Bar chart with different color spaced bars



qt890
20th April 2015, 13:19
Hello, this is my first post, my name is Nicolas and I'm new to Qt.

The output of the barchart example is:
11108

And I need something like this:
11109

Removing the sentence:
for ( int i = 0; i < numSamples; i++ )

The output is:
11110
How can I solve it?

I tried to use the QwtPlotBarChart class insted of QwtPlotMultiBarChart but couldn't set a different color for each bar.

Regards.

Uwe
21st April 2015, 07:26
Have a look at the distrowatch example.

Uwe

qt890
22nd April 2015, 14:03
Thanks Uwe.