
Originally Posted by
Qtmac
yes, but what should I write.
The same as with any other browser.
import QtQuick 2.4
import QtWebEngine 1.0
WebEngineView {
width: 600
height: 300
Component.onCompleted: loadHtml("<html><body><p id='demo'></p><script>document.getElementById('demo').innerHTML = navigator.userAgent</script></body></html>")
}
import QtQuick 2.4
import QtWebEngine 1.0
WebEngineView {
width: 600
height: 300
Component.onCompleted: loadHtml("<html><body><p id='demo'></p><script>document.getElementById('demo').innerHTML = navigator.userAgent</script></body></html>")
}
To copy to clipboard, switch view to plain text mode
Bookmarks