I followd this Example to draw a RGB-Histogram with Qt. I have three different QBarSets, one for each color channel.
My problem now is that all the bars are drawn next to each other. Is it somehow possible to draw the bars in front of each other?
That's how it looks right now:
And that's how I would like it: Link
Since the bars are all drawn next to each other in my example, they are much too narrow.
I solved my problem with a QStackedBarSeries and a few calculations by hand.
My Code:
The individual colors are drawn in a fixed sequence (gray -> red -> green -> blue).
This is the result: