Solved QLinearGradient how to modify a stop
-
I'd like to be able to replace/modify an existing stop in a gradient
So for example something along the lines of
gradient.setStop(index, position, colour); or,
gradient.setStop(index,revisedStop);The only way I can see to do this right now is replace all the stops at once using
QGradient::setStops();Is there a "better way"?
David -
Hi,
From a quick look, the quickest solution is to grab the stops, modify the ones you want and then set them back.
-
Hi,
From a quick look, the quickest solution is to grab the stops, modify the ones you want and then set them back.