I have a QOpenGLWidget in the Qt library and I was wondering if anyone has seen documentation or any examples as to how I can go from this object which contains all sorts of spheres, lighting etc. information and make it into a USD file? I might have to go through the Qt object and build the USD manually, but I feel like OpenGL/Qt are common enough frameworks that there might be some existing pipeline that I’ve missed. If someone could point me in the right direction that would be great!
Hi @emeitz, and welcome to the community! Sorry this slipped by, and I’m afraid I’m not aware of any existing Qt-to-USD converter. I also believe that QOpenGLWidget has been deprecated, and we are going to need to migrate usdview off of it, at some point.
Not entirely sure that is correct. Going based off of this there’s indeed some deprecated Qt OpenGL things being removed - but it also specifically mentions that QOpenGLWidgets class was moved and thus hints at being the ‘new style’ to use.
Mentioned here which also links to older version changes for Qt:
The Qt OpenGL module (which contain classes that start with “QGL”) is now deprecated in favor of the Qt GUI module (which contain classes that start with “QOpenGL”). QGLWidget can now be replaced by QOpenGLWidget.
It seems that usdview uses QGLWidget so it indeed would need refactoring, yes. But that’d make:
QGLWidget deprecated and already removed in recent Qt