QPixmap多图显示问题

  # 
        前面有3次循环
       image = self.input_image
           with torch.no_grad():
                image = to_tensor(image).unsqueeze(0) * 2 - 1
                out = net(image.to(device), args.upsample_align).cpu()
                out = out.squeeze(0).clip(-1, 1) * 0.5 + 0.5
                out = to_pil_image(out)
            self.out.append(out)
        pixmap1 = self.out[0].toqpixmap()
        self.image1.setPixmap(pixmap1)
        pixmap2 = self.out[1].toqpixmap()
        self.image2.setPixmap(pixmap2)
        pixmap3 = self.out[2].toqpixmap()
        self.image3.setPixmap(pixmap3)

我的问题是,为什么我在窗口显示的时候,3个image总是显示image3,image1,2都被image3给覆盖掉了,这是什么原因?
其中image1,2,3都是QLabel

不知道你这个问题是否已经解决, 如果还没有解决的话:

如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 写成博客, 将相关链接放在评论区, 以帮助更多的人 ^-^