Unsolved FYI: pyside6-uic doesn't know that QOpenGLWidget has moved.
-
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.
-
@sfjinla You really should not include everything from a module" (*)! Include only what you really need.
-
@jsulm Unfortunately uic is the one that makes this type of imports.
-
@sfjinla It seems to me that it is a bug so it is advisable to report it