Quote Originally Posted by Qtmac View Post
yes, but what should I write.
The same as with any other browser.

javascript Code:
  1. import QtQuick 2.4
  2. import QtWebEngine 1.0
  3.  
  4. WebEngineView {
  5. width: 600
  6. height: 300
  7.  
  8. Component.onCompleted: loadHtml("<html><body><p id='demo'></p><script>document.getElementById('demo').innerHTML = navigator.userAgent</script></body></html>")
  9. }
To copy to clipboard, switch view to plain text mode