Open and save image file using menubar in PyQt5
问题 I've written the following code to open image file using a menubar in PyQt5. It is able to select the file but not able to display it in the window. I've successfully opened text file but not able to do the same for images. Can you please rectify my error? import sys from PyQt5.QtWidgets import QMainWindow, QApplication, QWidget, QLabel, QFileDialog, QAction from PyQt5.QtGui import QIcon, QPixmap class MainWindow(QMainWindow): def __init__(self, parent = None): super(MainWindow, self).__init_