I am creating a QLineEditor to manually input a color in hex format. I want to set a validator to check if the input color is a pure HUE color.
All hue colors follow this pattern, being X any hex character [from 0-9 or A-F]:
#FF00XX
#00FFXX
#00XXFF
#XX00FF
#XXFF00
#FFXX00
I managed to check for a correct HEX color value: ^#([A-Fa-f0-9]{6})$
, but I don't know how to extend the validator to accept only hue colors.
Any ideas?