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. QVTKRenderWindowInteractor and QWebEngineView conflict
Qt 6.11 is out! See what's new in the release blog

QVTKRenderWindowInteractor and QWebEngineView conflict

Scheduled Pinned Locked Moved Unsolved QtWebEngine
1 Posts 1 Posters 526 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.
  • S Offline
    S Offline
    sapvi
    wrote on last edited by
    #1

    Hi all. So, I want to use QVTKRenderWindowInteractor for displaying some 3D data and, in the same app, I want to have QWebEngineView to render interactive bokeh plots.
    It seems not possible, however. Both widgets work ok when separated, but QWebEngineView is not rendered once I put both to the same app.
    I tried:

    1. First creating QWebEngineView and then QVTKRenderWindowInteractor and vice versa.
    2. I tried to use the following lines in case the problem is that both are trying to use GPU.
    os.environ["QTWEBENGINE_DISABLE_GPU"] = "1"
    os.environ["QTWEBENGINE_CHROMIUM_FLAGS"] = "--disable-gpu --disable-software-rasterizer"
    

    I have seen this workaround - https://discourse.vtk.org/t/cannot-use-qvtkrenderwindowinteractor-and-qwebengineview-together-in-one-application/5059. But I would like to find some easier one :(

    Questions:

    1. Is the problem that they are fighting for GPU or rather for some other resource?
    2. Can there be some other workaround instead of embedding code?
    3. Can I use something else other than QWebEngineView that would not create conflict but would allow me to create interactive plots? I have thought about rendering png and just setting it as image to some simpler widgets, but sadly it is not possible as I really need user to have possibility to interactively navigate in the plot.
    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