Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. QT WebEngine devicemotion eventlistener - no values after init
Forum Updated to NodeBB v4.3 + New Features

QT WebEngine devicemotion eventlistener - no values after init

Scheduled Pinned Locked Moved Unsolved QtWebEngine
1 Posts 1 Posters 334 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Miky
    wrote on last edited by Miky
    #1

    Dear people,

    i tried to load a - local html / a remote http and a https with webview, but the eventlistener never answered with values like event.acceleration.x. works with normal browser (https://timvolodine.github.io/deviceorientation-test/)

    i tried with setHTML to add the eventlistener directly in WebEngineView but same result.

    i trie to setAttributes but there is only one for geolocation. i need access to Gyroscope,Magnetometer and Accelerometer .

    i tried to use arguments like --enable-web-security .. nothing changed

    Is there a way not only to View HTML with the QT Library , but the integrated Javascript to?
    window.addEventListener("devicemotion", handleOrientation,....
    or something similar.

    Maybe direct Gyroscope / Sensor access from Python? acceleration.x
    Tried QAccelerometer() class but no chance

    best regards and thanks

    Python
    PyQt5

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved