How to Convert Qcolor value to hex value? December 24, 2023 by Tarik You need to print selectedColor().name() to print the actual color value in hex. See the QColor Documentation