[QGIS-Developer] Info about a 3D view's renderer, version, extensions via PyQt/PyQGIS?
Johannes Kröger (WhereGroup)
johannes.kroeger at wheregroup.com
Tue Feb 10 02:42:52 PST 2026
Hi list,
I am trying to get info on a client's machine 3D capabilities, where the
3D views are showing nothing, via Python in QGIS. I'd like to find their
GL_RENDERER, GL_VERSION etc.
Basically debugging https://github.com/qgis/QGIS/issues/40324 but
without the possibility to use third-party tools on the system.
It looks like QGIS uses a shared OpenGL context:
https://github.com/qgis/QGIS/blob/e8b8108f3f013d96014bbde50e6935bf1dc4414a/src/app/main.cpp#L961
Checking it out on my system yields:
>>>
QCoreApplication.testAttribute(Qt.ApplicationAttribute.AA_ShareOpenGLContexts)
True
but there are no extensions for example:
>>> QOpenGLContext.globalShareContext().extensions()
set()
While that set is empty, if I enable the "GL info" debug overlay in a 3D
view, it does show a list of many supported extensions.
Maybe I am using it wrong?
Does the 3D view actually use a different OpenGL context?
Is there a way to access info about that context from PyQGIS?
Cheers, Hannes
Johannes Kröger
GIS-Consulting/-Entwicklung
WhereGroup Logo
WhereGroup GmbH
Lange Reihe 29
20099 Hamburg
Germany
+49 228 90 90 38 36
johannes.kroeger at wheregroup.com
www.wheregroup.com
Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20260210/091d0bc9/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: KsMMzXXyFaFbXYxP.png
Type: image/png
Size: 5856 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20260210/091d0bc9/attachment.png>
More information about the QGIS-Developer
mailing list