WebEngine file download confirmation dialog
I'm trying to implement file downloading with WebEngineView (QML) and I'm not sure how to go about it. When I receive downloadRequested signal, I would like to display a confirmation dialog (optionally allowing to specify target directory etc.). The problem is that QML Dialogs are not blocking execution, and it seems that leaving signal handler automatically cancels download request.
What is the proper way to handle this situation?