Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for QtWebEngineWidgets in Windows PyQt5 #21

Open
jacksonofalltrades opened this issue Jun 21, 2016 · 2 comments
Open

Support for QtWebEngineWidgets in Windows PyQt5 #21

jacksonofalltrades opened this issue Jun 21, 2016 · 2 comments

Comments

@jacksonofalltrades
Copy link

Hi,
It seems that this may only be available in Qt5.6 or later, but I haven't completely determined that. This module seems to be completely missing when I try to build my Windows app using your python-qt5.
Any guidance on this?
Thanks!

@mottosso
Copy link
Member

Hm, looking at the docs, it looks like it's been there since 5.4.

But it's possible it didn't get included in the build for this project. This is how the project has been built, maybe there's a flag that could've/should've been set in order to build this?

I think it has a different license then the rest of Qt, not sure if it's related.

These are the possible build flags.

@martinpengellyphillips
Copy link

martinpengellyphillips commented Jun 2, 2017

For reference, this is what I had to do to get this working in a Virtualenv:

  1. pip install git+git://github.com/pyqt/python-qt5.git
  2. mv /path/to/virtualenv/qt.conf /path/to/virtualenv/Scripts
  3. Edit /path/to/virtualenv/Scripts/qt.conf to contain following:
[Paths]
Prefix = ../Lib/site-packages/PyQt5
Binaries = ../Lib/site-packages/PyQt5
  1. Copy /path/to/virtualenv/Lib/site-packages/PyQt5QtWebEngineProcess.exe and /path/to/virtualenv/Lib/site-packages/PyQt5QtWebEngineProcessd.exe to /path/to/virtualenv/Scripts directory.
  2. Download PyQt5 5.71 wheel for Python 3 from https://pypi.python.org/pypi/PyQt5/5.7.1 and extract.
  3. Copy resources and translations from the extracted wheel (\PyQt5\Qt) to /path/to/virtualenv/Lib/site-packages/PyQt5

Et voila. I was able to load a web page in QWebEnginePage

Note: Theoretically, adding LibraryExecutables = ../Lib/site-packages/PyQt5 to qt.conf should negate the need for copying the executables to Scripts, but it didn't work for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants