Important: Please read the Qt Code of Conduct -

RGB to hex conversion

  • Hello,

    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.

    Thanks in advance,


  • @QColor( QRgb color ).name()@

Log in to reply