OCC & QtQuick: How to make OCC rendering within an area, not entire Window?

Hi guys,

I'm trying to experience with OCC Visualization inside QtQuick, the build-in example renders OCC graphics entire window (WNT_Window), other projects using Occ/QtQuick I found do the same.

Do you know how to render OCC within a area of the QtQuick application window? (ex. inside an QML Item, Rect...)

Thank you for checking my query.
Merry Christmas!

gkv311 n's picture

I never done this myself, but it should be possible drawing V3d_View into qquick time item like QQuickFramebufferObject as alternative to rendering into the whole window. In this way qquick will manage composition of elements including 3d view, so that you will be able to place it whetever qml allows, though rendering performance might be a little bit affected.

Hoong Dang's picture

Hi,
The OCC subview seems to fit my expectation, except the fact that I can't make offset or margin work, look like only the size setting of subview works.