I think I have something close to that there: https://github.com/ossia/score/blob/master/src/plugins/score-plugin-js/JS/Executor/GPUNode.cpp#L284
Line 289 the rendertarget on which QtQuick is going to be rendered. Then the actual rendering is there: https://github.com/ossia/score/blob/master/src/plugins/score-plugin-js/JS/Executor/GPUNode.cpp#L370-L426 Afterwards what's in the render target can be used in further render passes like any other texture to have your overlaid content. It's not perfect as I haven't been able to make Animators work though, but what I'm missing with this is likely not related to QRhi ! Also I haven't been able to do it without private API (https://github.com/ossia/score/blob/master/src/plugins/score-plugin-js/JS/Executor/GPUNode.cpp#L392) - if there's any way to do it I'd love to know. Cheers, hopefully this helps! On Sun, Feb 16, 2025 at 11:00 AM Giuseppe D'Angelo via Development <development@qt-project.org> wrote: > > Hi, > > When using QQuickWindow with RHI, I'm wondering what would be the best > way to capture the contents drawn by QtQuick (1), and also overlay some > further drawing on top of those contents (2). > > The tricky bit is that I'd like the capture _not to_ include the further > drawing -- I've solved (1) and (2) independently, and also together by > capturing the overlay, but I'm really not sure what would be the proper > way to do this using QQuickView's signals. > > Does anyone have any insights to share regarding what one should do in > which signal (again, using RHI APIs here, not platform-specific ones)? > > Thank you, > -- > Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Senior Software Engineer > KDAB (France) S.A.S., a KDAB Group company > Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com > KDAB - Trusted Software Excellence > -- > Development mailing list > Development@qt-project.org > https://lists.qt-project.org/listinfo/development -- Development mailing list Development@qt-project.org https://lists.qt-project.org/listinfo/development