Creating ARGB QImage from uint32 or uchar array
问题 When I try to create a ARGB32 QImage from a reinterpret_cast<uchar*>(quint32*) using the QImage constructor the Image looses its color and alpha channel and the resulting QImage is grayscale! The grayscale image is displayed as expected, if I was trying to display it in grayscale. So I know the scaling and indexing of ushort data to the quint32 array went well, but what is going wrong? A Qt forum post suggested to do it the way I am doing it (as far as I can see), but maybe behavior has