Guys,
any way to add a color gradient to a HistogramItem ? instead of plain color ?
thanks
Michael
Guys,
any way to add a color gradient to a HistogramItem ? instead of plain color ?
thanks
Michael
If you mean HistogramItem from the Qwt examples you have to modify its implementation. The brush that is used to fill the bars need to be initialized by your gradient instead of a color. In Qwt 6.x ( SVN trunk ) you can modify the palette ( QwtColumnSymbol::setPalette() ) that is used to draw a column of a QwtPlotHistogram.
Uwe
thanks Uwe,
l downloaded qwt6 and compiled it ( only the source, there is errors for the examples)
When l try to compile my code with qwt6 ...looks like QwtDoubleInterval has been removed from the library ...
regards,
Michael
What errors ?
And 5 seconds later you will have found a class QwtInterval.When l try to compile my code with qwt6 ...looks like QwtDoubleInterval has been removed from the library ...
Qwt 6.x is by far not source code compatible ( f.e Qt 3 support has been dropped ) but in opposite to Qwt 5.x it has an implementation of a plot item for histograms - not only an example showing how you could implement one.
Uwe
yes l've got all kind of error messages ...l came over by using the qwtconfig file from qwt5.2.0
now everything is working, and l'm able to set a Gradiant on the histogram...that 's nice.
any idea when you will release this rev6 ?
regards,
Michael
Bookmarks