Is it possible to show a web page hosted on the Internet in a plugin dialog ?

• Sep 25, 2019 - 08:17

That is, to put some sort of a web browser control in a dialog and tell it to render some URL.
I tried something similar to this

https://stackoverflow.com/questions/48594113/how-to-use-qml-qwebview-in…

I tried the both ways: WebEngineView and WebView but I get error "plugin cannot be loaded for module "QtWebView": Cannot load library C:\Program Files\MuseScore 3.3 Beta 2\qml\QtWebView\declarative_webview.dll: The specified module could not be found."

I'm developer but have no experience with the Qt


Comments

In reply to by Jojo-Schmitz

Sorry, I was sure that I tried both of them (WebView and WebEngineView) and get similar error in the both cases but I tried again and it works. For instance, this works (I run it successfully on Windows 10 laptop):

import QtQuick 2.0
import QtWebEngine 1.4
import MuseScore 3.0

MuseScore {
menuPath: "Plugins.pluginName"
description: "Description goes here"
version: "3.0"
pluginType: "dialog"
width: 500
height: 500

  WebEngineView{
     id : webEnginView
     width: 500
     height: 500
     url : "http://www.google.com";
  } 

  onRun: {
        console.log("hello world")
  } 

}

Do you still have an unanswered question? Please log in first to post your question.