diff --git a/extensions/PythonQt_QtAll/PythonQt_QtAll.pro b/extensions/PythonQt_QtAll/PythonQt_QtAll.pro
index 8881d00c1..510b98c48 100644
--- a/extensions/PythonQt_QtAll/PythonQt_QtAll.pro
+++ b/extensions/PythonQt_QtAll/PythonQt_QtAll.pro
@@ -11,10 +11,7 @@ isEmpty( PYTHONQTALL_CONFIG ) {
qtHaveModule(svg):CONFIG += PythonQtSvg
qtHaveModule(sql):CONFIG += PythonQtSql
qtHaveModule(network):CONFIG += PythonQtNetwork
- lessThan(QT_MAJOR_VERSION, 6) {
- # module is empty in Qt6
- qtHaveModule(opengl):CONFIG += PythonQtOpengl
- }
+ qtHaveModule(opengl):CONFIG += PythonQtOpengl
qtHaveModule(xml):CONFIG += PythonQtXml
qtHaveModule(xmlpatterns):CONFIG += PythonQtXmlpatterns
qtHaveModule(multimedia):CONFIG += PythonQtMultimedia
@@ -115,6 +112,9 @@ PythonQtNetwork {
PythonQtOpengl {
DEFINES += PYTHONQT_WITH_OPENGL
QT += opengl
+ greaterThan(QT_MAJOR_VERSION, 5){
+ QT += openglwidgets
+ }
PythonQtCore: Xinclude (com_trolltech_qt_opengl)
QT += xml
}
diff --git a/generator/typesystem_gui.xml b/generator/typesystem_gui.xml
index e77d69816..6d391e2b0 100644
--- a/generator/typesystem_gui.xml
+++ b/generator/typesystem_gui.xml
@@ -39,42 +39,42 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -498,8 +498,8 @@
-
-
+
+
@@ -3073,17 +3073,17 @@ PyObject* constScanLine(QImage* image, int line) {
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
@@ -3091,12 +3091,12 @@ PyObject* constScanLine(QImage* image, int line) {
-
-
-
-
-
-
+
+
+
+
+
+
@@ -3121,15 +3121,15 @@ PyObject* constScanLine(QImage* image, int line) {
-
+
-
-
+
+
@@ -3155,34 +3155,34 @@ PyObject* constScanLine(QImage* image, int line) {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
-
+
@@ -3193,11 +3193,11 @@ PyObject* constScanLine(QImage* image, int line) {
-
+
-
-
+
+
diff --git a/generator/typesystem_opengl.xml b/generator/typesystem_opengl.xml
index b8de602c5..80a600250 100644
--- a/generator/typesystem_opengl.xml
+++ b/generator/typesystem_opengl.xml
@@ -1,43 +1,137 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
+
-
+
-
+
-
-
-
-
-
+
+
+
+
+
@@ -61,7 +155,7 @@
-
+
@@ -71,13 +165,13 @@
-
-
+
+
-
+