How to use QtWebkit ?
Hello,
I apologize if my question is stupid, I'm a beginner !
I try to code my own plugin, and I need to use the QtWebkit.
I check it's available in the framework folder in the MuseScore app, but how can I know the version of this webkit ?
At the header of my plugin, I must write "import QtWebkit X.XX", and I don't know which version.
Comments
Maybe 4.8? I looked for some trace: https://musescore.org/en/node/18027
In reply to Maybe 4.8? I looked for some by Shoichi
Great !
I will study this post. Thanks !
The QtWebkit QML module is not included in 2.0.2.
See https://github.com/musescore/MuseScore/blob/master/mscore/CMakeLists.tx…
The post linked by Soichi was an experiment, 3 years ago.
What do you want to do exactly?
In reply to The QtWebkit QML module is by [DELETED] 5
A plugin for my young students, which the following behavior :
- when starting the plugin, a frame appears and load a webpage
- the webpage contains a list of links to mscz files
- when clicking on a link, the score is opened by MuseScore
Because, it's the only way to manage easily the mscz files I give to my students. Else I must copy one by one on their usb key.
A this moment, I can open a webpage from a plugin, but it's with the default external navigator. And clicking on a link will download it and not open it in MuseScore.
In reply to A plugin for my young by skunt
"And clicking on a link will download it and not open it in MuseScore."
Weird, MuseScore should open mscz files when they are downloaded. It's a function of the OS. On my mac, clicking on a mscz file definitely open MuseScore or open the file in MuseScore if already opened.
In reply to "And clicking on a link will by [DELETED] 5
My test : //fmao.net23.net
On my mac it's a download, but maybe it's not setting for.
The students are very young : from 7 years old. And they can't use their computer (open the webbrowser, download a file, search it in a folder, open with musescore (and musescore should be already installed).
For these reasons, I installed MuseScore portable on their usb media, because I can custom the ui : hiding palettes, navigator, toolbars, etc., setting preferences to starting with play panel shown, etc. And for these students, the best way to open a file is to stay in MuseScore to do that. Using files hosted in musescore.org and opening them with the search box in the start center is not very easy, because it's a download too.
I'm looking for a way to manage the content online, and only one application to use for the student.
In reply to My test : by skunt
Your test page does work for me on mac, it opens directly in MuseScore.
You could try another approach.
1/ When the plugin starts, it loads a json or xml file from your server
2/ The json file contains links, title etc... and you use it to create the UI of your plugin dynamically.
Yes... it's probably too much involved for your purpose but it should work.
http://doc.qt.io/qt-5/qtqml-javascript-dynamicobjectcreation.html
In reply to Your test page does work for by [DELETED] 5
Great idea !
I will test this way. Thanks !