Finish the "WebEngine Qt Quick Custom Dialogs Example" started in https://codereview.qt-project.org/#/c/169358/