I have some inconvenience with WebEngineView. I’ve placed it like other element in my scroll view. It’s just need to play some YouTube video.
So, when I scroll through my ScrollView, when mouse is on WebEngineView area it won’t scroll anymore.
ApplicationWindow {
width: 640
height: 480
visible: true
title: qsTr("Hello World")
ScrollView
{
id: myScrollView
anchors.fill: parent;
Rectangle
{
...
}
Text ...
Text ...
other stuff
WebEngineView
{
id: myWebEngineView
Component.onCompleted:
{
loadHtml(model.modelData.someHTMLData);
}
}
}
}
As I discovered. You can do enabled = false
on WebEngineView. But it makes it unclickable. I’ve also tried to add MouseArea in it, didn’t help. Wrapping it in Item also didn’t work.