When you call QFileDialog::getOpenFileName() the current value from QLineEdit should be used if it is not empty (but even if it is empty Qt library will resolve this situation in a proper way).
Currently usage (of some) of these dialogs is not convenient. For example:

If you click on choosing file button QFileDialog::getOpenFileName() will be open with a path into home directory instead of path to /usr/lib/wine/wine64...
When you call
QFileDialog::getOpenFileName()the current value fromQLineEditshould be used if it is not empty (but even if it is empty Qt library will resolve this situation in a proper way).Currently usage (of some) of these dialogs is not convenient. For example:

If you click on choosing file button
QFileDialog::getOpenFileName()will be open with a path into home directory instead of path to/usr/lib/wine/wine64...