I need a LineEdit widget to edit a bytearray in hexadecimal format. Something like this:


I want that LineEdit could take only [0-9][a-f][A-F] characters, and spaces should be added by widget only for visualization needs.
value() method should return a bytearray (for the image example "\x1ahallo!!")

there exest something on the web already done?

thanks