I was wanting to know if there was an RGB to hex conversion in Qt. I read through Qt color picker and Qt color documentation but was unable to find any conversion for RGB to hex. I know it is simple to parse and convert myself but I would like to use a function.