def intToColorHex(color_number):
    """Convert an integer to a hexadecimal string compatible with :class:`QColor`

    Args:
        color_number (int): integer value of a RGB color

    Returns:
        str: QColor compatible hex string in format '#rrggbb'
    """
    return '#%0.6x' % color_number
