Hi, can someone please tell me how to convert a 32 bit RGB image to 8 bit gray scale image. I am using QImage

Thanks