Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to render a QQuickItem offscreen on a QQuickRenderControl from a C++ function

How to render a QQuickItem offscreen on a QQuickRenderControl from a C++ function

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 512 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.
  • Roby BrundleR Offline
    Roby BrundleR Offline
    Roby Brundle
    wrote on last edited by
    #1

    I am using QQuickRenderControl to render some texture using an QOffscreenSurface. This is very much dependent on the Qt official example for
    QQuickRenderControl

    How can I offscreen render individual QQuickItems to this QQuickRenderControl.

    I have the QQmlApplicationEngine pointer & easily get a qml object in C++ function like so:

    QQuickItem * my_qml_item = QmlEnginePointer->rootObjects()[0]->findChild<QQuickItem*>("MyQMLItemObject");
    

    How can I render my_qml_item into my QQuickRenderControl from a C++ function?

    PS: I have the QOffscreenSurface set up to take care of the refresh etc. I just want to know how to render any QQuickItem on this QQuickRenderControl.

    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