What you are looking for is rendering to framebuffer, this make a custom painting for the item (all Qml Item are OpenGL based for now under the hood). All you need to do is a view Qml Item that render your framebuffer as a texture (your Qml viewport of some sort). What you just link is putting the texture to the item. All you need is render your 3D to framebuffer, something more like this: http://doc.qt.io/qt-5/qtcanvas3d-framebuffer-example.html
or https://stackoverflow.com/questions/23968598/opengl-scene-under-qt-qml-application This should help get started. I hope your rendering can do it into a framebuffer which can be sized as your Item and then apply that framebuffer to your Item painting/rendering. You might also want to give a look to Qt 3D object structure (this might give you some hint how to create your own Viewport/GlViewer objects and interface. ________________________________ From: Interest <interest-bounces+godboutj=amotus...@qt-project.org> on behalf of Sylvain Pointeau <sylvain.point...@gmail.com> Sent: Friday, February 23, 2018 8:10 AM To: Alexandre Ribeiro Cc: Qt Project Subject: Re: [Interest] qml or qwidget Hi, On Thu, Feb 22, 2018 at 4:42 PM, Alexandre Ribeiro <alexandregomesribe...@gmail.com<mailto:alexandregomesribe...@gmail.com>> wrote: I'm using Qt Quick 2 with an in house 3D engine for a desktop application and I've been getting great results. My clients actually required that we used an UI that wasn't native and that had a web 2.0 look, so the Qml/C++/OpenGL combination was a godsend. This is exactly what I was looking for, I don't really need native look & feel anyway Please could you elaborate on the approach you have taken? did you follow this approach http://doc.qt.io/qt-5/qtquick-scenegraph-openglunderqml-example.html ? Best regards, Sylvain
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest