Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QGradient add stops at starting/ending location
Perdrix last edited by Perdrix
I'd like to be able to add stops at the start location and end location.
Why? Because I'd like the start and end to remain as they are (for the sake of argument (0.0, black) and (1.0, white)).
The additional stops I'd like to able to modify but initially set to the existing start/end locations and colours.
So would it work if the vector of stops were:
(0.0, black), (0.0, black), (sqrt(0.5), grey), (1.0, white), (1.0, white)?
Or do I need to adjust the position of the second and last but one stops to (say) 0.001 and 0.999
I would guess double points are simply ignored - simply try it out and you will see.