问题
What I want is a way to create a Qt Quick item drawn using custom OpenGL code. I seem to have found 2 ways:
- Subclass QQuickFramebufferItem and write my OpenGL code in C++
- Create a Canvas3D item in QML and draw to it from Javascript
Do these two ways really have the same purpose, with the main difference that they're used from different languages?
来源:https://stackoverflow.com/questions/39596473/is-qquickframebufferitem-the-c-equivalent-of-qmls-canvas-3d