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

QLineEdit sometimes doesn't get focus in PyQt5 example on Windows #404

Closed
cztomczak opened this issue Nov 5, 2017 · 3 comments
Closed

Comments

@cztomczak
Copy link
Owner

cztomczak commented Nov 5, 2017

QLineEdit = url in navigation bar in qt.py example. This issue occurs only in PyQt5. PySide and PyQt4 do work fine.

Version information:

[qt.py] CEF Python 57.0
[qt.py] Python 3.6.3 32bit
[qt.py] PyQt 5.9 (qt 5.9.1)

Initially reported on the Forum:
https://groups.google.com/d/topic/cefpython/2kM7foVHlJw/discussion

@xzycn
Copy link

xzycn commented Dec 29, 2018

Hello, this issue happened in PySide2 example too.
Is there a workaround for this? :)

[qt.py] CEF Python 66.0
[qt.py] Python 3.7.0 64bit
[qt.py] PySide2 5.12.0 (qt 5.12.0)

@cztomczak
Copy link
Owner Author

cztomczak commented Dec 29, 2018

There are multiple focus issues in CEF on Linux and this is tracked via Issue #284. See the comments in that issue for possible resolutions.

cztomczak added a commit that referenced this issue Jan 22, 2020
@cztomczak
Copy link
Owner Author

Fixed in commi 181588c. Fixed it by calling self.cef_widget.setFocus() in FocusHandler.OnGotFocus.

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

No branches or pull requests

2 participants