So I solved my problem.
It turns out QImage needs the image to be a flat numpy array.
Here is how it's done:
Where arr is an array of shape (h,w) and with uint8 values in 0-255
Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.