show matplotlib imshow output in Qt
问题 I have a 2D numpy array of type np.float64, and I want to show it as an image in a QLabel (or any other valid way): self.img = np.rot90(get_my_data()) # this line returns a 2D numpy array of type np.float64 self.qimg = QtGui.QImage(self.img, self.img.shape[0], self.img.shape[1], QtGui.QImage.Format_Grayscale8) self.myLabel.setPixmap(QtGui.QPixmap(self.qimg)) My code above returning the following error: TypeError: arguments did not match any overloaded call: QImage(): too many arguments QImage