FYI: pyside6-uic doesn't know that QOpenGLWidget has moved.
Unsolved
Qt for Python
-
An FYI to people looking for this:
Normally when you create python from a ui file, the head of the python script includes the
necessary "import" statements for the material:from PySide6.QtCore import * # type: ignore
from PySide6.QtGui import * # type: ignore
from PySide6.QtWidgets import * # type: ignoreHowever, if your ui file includes a QOpenGLWidget, please note that you need to manually add:
from PySide6.QtOpenGLWidgets import * # type: ignore
It appears that when QOpenGLWidget was moved from Widgets into QOpenGLWidgets, pyside-uic was not made aware of this.