Well the sequence is either RGBRGB... or ARGBARGB..., which are both different from RGBARGBA... used by SFML, so the following won't work / isn't correct:
m_pixels = std::vector<Uint8>(array, array + n);
although it's fast and easy, which is all the more the pity.
Now I wonder if I'd rather make my QImage using the RGB format, then add zeroes in the vector: R, G, B, 0, R, G, B, 0... ; or if I'd rather make my QImage using the ARGB format, then make a lot of swaps so that the sequence becomes RGBA-formatted. Would you have a preference?