Plot image at center of label in PyQT
Plot image at center of label in PyQT Question: QGridLayout is used to place QLabel. Then cv2 images are displayed as follows. frame = self.dequeList[cam.camID].popleft() img = QtGui.QImage(frame, frame.shape[1], frame.shape[0], QtGui.QImage.Format_RGB888).rgbSwapped() pix = QtGui.QPixmap.fromImage(img) self.videoList[f"video_{cam.camID}"].setPixmap(pix) Now display start from 0,0 coordinates as below. I like to display image at the center of label. How can …