PyQt5, OpenGL, where to start, minimal example code?
John Ladasky
john_ladasky at sbcglobal.net
Tue Oct 4 00:57:37 EDT 2016
On Monday, October 3, 2016 at 1:30:29 AM UTC-7, Phil Thompson wrote:
> On 3 Oct 2016, at 4:29 am, John Ladasky <j... at s...net> wrote:
> > And as you can see: trying to call versionFunctions() is exactly where my program failed.
>
> Try passing a QOpenGLVersionProfile object to versionFunctions() that has a version set to one supported by PyQt.
Hi Phil,
I'm trying to follow your advice. It's strange, "from PyQt5.QtGui import QOpenGLVersionProfile" works fine, and I can make an object of that type.
However: http://pyqt.sourceforge.net/Docs/PyQt5/ DOES NOT DOCUMENT QOpenGLVersionProfile. I did find Qt documentation, at http://doc.qt.io/qt-5/qopenglversionprofile.html. I will investigate this issue further. Sometimes it isn't obvious how the C++ constructors are wrapped in Python.
If I ever understand a GUI like PyQt5 well enough, I'd like to contribute to its documentation. Sigh.
More information about the Python-list
mailing list