To open a file that a user selects, first display a QFileDialog (perhaps using getOpenFileName()) for the user to select the file.
To open a file that a user selects, first display a QFileDialog (perhaps using getOpenFileName()) for the user to select the file.