a = np.random.randint(0, 256, size=(100, 100, 3)).astype(np.uint32)
b = (255 << 24 | a[:, :, (0)] << 16 | a[:, :, (1)] << 8 | a[:, :, (2)]
    ).flatten()
im = PySide.QtGui.QImage(b, 100, 100, PySide.QtGui.QImage.Format_RGB32)
Convert numpy array to PySide QPixmap