Nominate our 2022 Qt Champions!


  • I am not sure if I am on the right track with QwtLinearColorMap for what I am doing. Basically I have a plot that hasanywhere from to zero to probably 20 different QwtPlotCurves on it at any one time. What I want to do is as I am adding them from left to right on the QwtPlot I want to make each a different color; (cold-->hot, left to right, blue to red). I am wondering if QwtLinearColorMap is the way to go or if there is another Qwt class that is better suited for my needs. The problems I am running in to with QwtLinearColorMap is that I don't understand if it possible to step through and pick out a new color out for each curve.

Log in to reply