Community
VRED Forum
Welcome to Autodesk’s VRED Forums. Share your knowledge, ask questions, and explore popular VRED topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

VRED MediaEditor / Version of WebEngine

6 REPLIES 6
Reply
Message 1 of 7
marc.winter2
599 Views, 6 Replies

VRED MediaEditor / Version of WebEngine

Hi,

 

1. Is it correct, that the WebEngine runs with “Mozilla/5.0, Chrome/56.0.2924.122, …” from 2016?

2. If yes, is it possible to replace it manually with a newer version?

3. If not, which Chrome Version runs in the latest build of VRED?

 

Thanks in advance!

6 REPLIES 6
Message 2 of 7
seiferp
in reply to: marc.winter2

We are using the qtwebengine that comes with Qt. VRED is currently using Qt 5.12.6 wich is using Chromium 69. Keep this in mind when using features/css styling etc. that were introduced with a newer Chrom version and look different in your browser compare to what you see in VRED. 

Message 3 of 7
marc.winter2
in reply to: seiferp

Vred2019.2 UserAgent:

Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.9.5 Chrome/56.0.2924.122 Safari/537.36

Vred2020.3 UserAgent:
Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.12.3 Chrome/69.0.3497.128 Safari/537.36

Message 4 of 7
Anonymous
in reply to: seiferp

I know, this is very specific, but ...

 

The QT Webengine supports access to its internal Chromium Flags (@see https://doc.qt.io/qt-5/qtwebengine-debugging.html, https://myprogrammingnotes.com/pass-parameters-ch...).

 

Is it possible to achieve this in VRED too? Do we have access to the instance of the Webengine via script? 

Message 5 of 7
marc.winter2
in reply to: Anonymous

Hi,

by a quick search i've found the modules vrWebEngineObj and vrWebOverlay

 

vrWebEngineObj sounds promising but there is not much. No class only these methods.

  • bool hasWebEngineFocus()  Return true if a web engine has the focus.
  • bool isWebEngineInteractionEnabled()  Return true if interaction with web engines is enabled.
  • sendToWebEngine(name, event, data) Sends a custom event to a web engine.
  • setWebEngineInteractionEnabled(enabled) Enables or disables the interaction with all web engines in the scene.

vrWebOverlay has a class, a constructor and inherits from some baseclasses. But nothing in you are looking for.

  • __init__(url) The constructor of the vrWebOverlay class.
  • hide() Hides the frame.
  • setFrame(x) Sets the frame.
  • setOpacity(opacity) Sets the opacity of the overlay.
  • setUrl(url) Sets the url.
  • show() Shows the frame.
  • toggleShow()

Best reagards

Message 6 of 7
markus_keller
in reply to: Anonymous

Unfortunately we currenly do not yet have a generic scripting interface for WebEngines.

The environment variables from https://doc.qt.io/qt-5/qtwebengine-debugging.html should work. We're not doing anything to prevent that. I just tested with QTWEBENGINE_REMOTE_DEBUGGING and was able to debug the website displayed in a frontplate by connecting from Chrome to the specified port.



Markus Keller
Sr. Software Engineer
Message 7 of 7

Hi Markus,

Thank you. This sounds promising. We'll take a look.

Best regards

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report