Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to render only in a single QQuickItem?
Forum Updated to NodeBB v4.3 + New Features

How to render only in a single QQuickItem?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 220 Views 1 Watching
  • 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.
  • J Offline
    J Offline
    julienchz
    wrote on last edited by
    #1

    Hello, I use VTK9 (QQmlVTKPlugin) in a Qt6 QML project to add a 3D viewer, my rendering is done in a QQuickItem. To synchronize the main thread and the render thread, I use my appication window :

    connect(m_window, &QQuickWindow::beforeRendering, m_renderer, &ViewerRenderer::init, Qt::DirectConnection);
    connect(m_window, &QQuickWindow::beforeRenderPassRecording, m_renderer, &ViewerRenderer::paint, Qt::DirectConnection);
    connect(m_window, &QQuickWindow::beforeSynchronizing, m_renderer, &ViewerRenderer::sync, Qt::DirectConnection);
    

    But with this method, all updates of a QQuickItem run a render of my 3D viewer. Is it possible to use the same synchronization system but to render only in the chosen QQuickItem with VTK or should I use another way ?

    Thanks for your help

    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