pyqt5做图像显示时报错
def openimage(self):imgName, imgType = QFileDialog.getOpenFileName(self, "打开图片", "./", "*.jpg;;*.png;;All Files(*)")
报错:Traceback (most recent call last):
File "new1.py", line 19, in openimage
imgName, imgType = QFileDialog.getOpenFileName(self, "打开图片", "./", "*.jpg;;*.png;;All Files(*)")
TypeError: getOpenFileName(parent: QWidget = None, caption: str = '', directory: str = '', filter: str = '', initialFilter: str = '', options: Union[QFileDialog.Options, QFileDialog.Option] = 0): argument 1 has unexpected type 'Ui_MainWindow'