Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/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,

    Bryan



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


Log in to reply