I want to load just one part of the webpage(e.g. login button of my webpage) in my personal computer application which is written by Qt(version: 5.12.4) but I couldn't find anything which can help me to do this. I think it should have one solution to load iframe/frame or something like these. For example, the webpage has following content and I want to load button2 in my application.
<!DOCTYPE html>
<html>
<body>
<button id="button1" type="button" onclick="alert('Hello world1!')" >Click button1</button>
<button id="button2" type="button" onclick="alert('some other hi!')" >Click button2</button>
<button id="button3" type="button" onclick="alert('Hello there!')" >Click button3</button>
</body>
</html>
I can load the whole page easily as follow but the challenge is how to load just a proper component like button with button2 id.
Rectangle {
id: LoginButton
width: 200
height: 50
WebEngineView {
anchors.fill: parent
url: "http://my-url-address.com"
}
}
Any idea?!