Is QQuickFramebufferItem the C++ equivalent of QML's Canvas 3D?

北城余情 提交于 2019-12-13 06:39:35

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!