[PyQt] Windows OpenGL errors
Simon, Stuart A.
ssimo3 at lsuhsc.edu
Wed Aug 16 14:19:20 BST 2017
I’m trying to compile the examples bundled with Qt Creator (including http://doc.qt.io/qt-5/qtwebengine-webengine-customdialogs-example.html). I want to tell the C++ compiler (or Qt Creator for that matter) to use the version of Qt bundled with PyQt so that I can determine whether this is or is not an issue with the Qt underlying PyQt.
I have considered both NW.js and Electron. But with recent updates to Node.js, they no longer play nice with SQLite, which I am using for my backend. Also, I tried cefpython, but I need to make an executable. I will be distributing my app to several people, none of whom have Python installed on their system and none of whom have the capability of installing it.
Stuart Simon
Graphics Specialist
LSU Human Development Center
411 S Prieur St
New Orleans, LA 70112
http://www.hdc.lsuhsc.edu/
From: michael h [mailto:michaelkenth at gmail.com]
Sent: Tuesday, August 15, 2017 6:26 PM
To: Simon, Stuart A. <ssimo3 at lsuhsc.edu>
Cc: Phil Thompson <phil at riverbankcomputing.com>; pyqt at riverbankcomputing.com
Subject: Re: [PyQt] Windows OpenGL errors
*EXTERNAL EMAIL: EVALUATE*
On Sun, Aug 13, 2017 at 1:13 AM, Simon, Stuart A. <ssimo3 at lsuhsc.edu<mailto:ssimo3 at lsuhsc.edu>> wrote:
Can I tell any C++ compiler to look for the Qt executable bundled with PyQt? Where is said executable within the structure of the Python of the installation, relative to the folder that contains python.exe?
What do you mean by "Qt executable" (do you just mean the library dlls?) and what are you compiling?
> I would like to debug my JavaScript to tell you more. But for that, I need you to implement the global function entitled “qputenv.” Once that is done, I can call
You could set the environment variable using other means (perhaps just through the command line)?
________________________________________
> Dear PyQt Users:
> I'm a novice developer in the area of desktop apps, but a veteran in the world of Web development. I have yet to find in the world of GUI programming something as intuitive as HTML and JavaScript, Bootstrap and AngularJS. That being said, I have been tasked with creating an application whose raison d'être is to be redistributable and have each copy modify its own data. I need to be able to redistribute this to an unknown but small number of my coworkers who will each populate a database as they see fit. When all is finished, I will collect the data back from them to gather information for a report that my department chair will write.
>
> I want to use a thin wrapper such as QtWebEngine on a Web GUI that makes use of AngularJS and Bootstrap to lay itself out. My application is running fine on a Mac, including using qt.webChannelTransport and waiting to bootstrap the Angular application until called inside the QtWebChannel init callback. But my application is not working on Windows 7, where I am getting OpenGL error after OpenGL error. The callback is being fired, but it has no access to either console (for debugging) or to the “objects” property of the “channel” object passed as an argument to the callback. It is as though the argument is not being passed to the callback at all.
This doesn't directly help you with your issue but have you considered Electron or NW.js (or something along those lines) ? Qt and python seems to be extra layers you don't need (or want?).
- Michael
On Sun, Aug 13, 2017 at 1:13 AM, Simon, Stuart A. <ssimo3 at lsuhsc.edu<mailto:ssimo3 at lsuhsc.edu>> wrote:
Can I tell any C++ compiler to look for the Qt executable bundled with PyQt? Where is said executable within the structure of the Python of the installation, relative to the folder that contains python.exe?
________________________________________
From: Phil Thompson <phil at riverbankcomputing.com<mailto:phil at riverbankcomputing.com>>
Sent: Saturday, August 12, 2017 3:09:56 AM
To: Simon, Stuart A.
Cc: pyqt at riverbankcomputing.com<mailto:pyqt at riverbankcomputing.com>
Subject: Re: [PyQt] Windows OpenGL errors
*EXTERNAL EMAIL: EVALUATE*
On 12 Aug 2017, at 2:46 am, Simon, Stuart A. <ssimo3 at lsuhsc.edu<mailto:ssimo3 at lsuhsc.edu>> wrote:
>
> Hello!
> I am not sure why this message is not in the archives. I assume that it was not sent because I was not a member of the mailing list at the time. I very consciously chose not to subscribe because of all the mass mailings I get that are off-topic. I expected that I would have received an ACCESS DENIED message (or something similar) in my inbox. Be that as it may, I subscribed reluctantly. Many more recent conversations than this one are in the archive now.
>
> In a nutshell: I am getting LOTS of OpenGL errors on Windows when I try to use QtWebEngine on Windows, too many and too redundant for a screenshot. I've VERY consciously appealed this problem to the PyQt developers first, even though there are fewer of them than those who work with Qt/C++. Why? I have good reason to suspect that the PyQt developers were so eager to rush out compliance with Qt with respect to the implementation of QtWebEngine and the deprecation of QtWebKit that they were unaware that the QtDevelopers were running ahead at the same pace. Qt 5.4 was the first to use a dynamic OpenGL implementation, which loads ANGLE only as a fallback. I suspect that PyQt may still be using ANGLE by default, and I want to determine if it is being used and, if so, disable it. And for that, I need to know where Qt itself resides in the PyQt structure, if anywhere.
>
> Hopefully this will go out, and people won't think it's too long. I myself fear that if I am too brief, I am unclear.
PyQt knows nothing about the OpenGL implementation used by Qt, ANGLE or otherwise.
You might want to try getting the relevant Qt C++ examples working with your setup.
Phil
> From: Simon, Stuart A.
> Sent: Monday, August 7, 2017 11:07 AM
> To: pyqt at riverbankcomputing.com<mailto:pyqt at riverbankcomputing.com>
> Subject: Windows OpenGL errors
>
> Dear PyQt Users:
> I'm a novice developer in the area of desktop apps, but a veteran in the world of Web development. I have yet to find in the world of GUI programming something as intuitive as HTML and JavaScript, Bootstrap and AngularJS. That being said, I have been tasked with creating an application whose raison d'être is to be redistributable and have each copy modify its own data. I need to be able to redistribute this to an unknown but small number of my coworkers who will each populate a database as they see fit. When all is finished, I will collect the data back from them to gather information for a report that my department chair will write.
>
> I want to use a thin wrapper such as QtWebEngine on a Web GUI that makes use of AngularJS and Bootstrap to lay itself out. My application is running fine on a Mac, including using qt.webChannelTransport and waiting to bootstrap the Angular application until called inside the QtWebChannel init callback. But my application is not working on Windows 7, where I am getting OpenGL error after OpenGL error. The callback is being fired, but it has no access to either console (for debugging) or to the “objects” property of the “channel” object passed as an argument to the callback. It is as though the argument is not being passed to the callback at all.
>
> As far as I can tell, I am using OpenGL_ES.
>
> I would like to debug my JavaScript to tell you more. But for that, I need you to implement the global function entitled “qputenv.” Once that is done, I can call
>
> qputenv(“QTWEBENGINE_REMOTE_DEBUGGING”, 12345)
>
> and then I will get the Chrome Dev Tools at http://localhost:12345.
>
> I am trying to switch to cefpython. But that comes with its own set of problems in using py2exe, pyinstaller, and cx_freeze. I want to distribute my app to a few people who will need it but who themselves do not have Python.
>
> Stuart Simon
> Graphics Specialist
> LSU Human Development Center
> 411 S Prieur St
> New Orleans, LA 70112
> http://www.hdc.lsuhsc.edu/
>
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com<mailto:PyQt at riverbankcomputing.com>
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt
_______________________________________________
PyQt mailing list PyQt at riverbankcomputing.com<mailto:PyQt at riverbankcomputing.com>
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20170816/59cde7a9/attachment-0001.html>
More information about the PyQt
mailing list