QLineEdit can not get the focus sometimes in pyqt example

319 views
Skip to first unread message

Wenxiang He

unread,
Nov 4, 2017, 11:19:02 AM11/4/17
to CEF Python
In Windows, https://github.com/cztomczak/cefpython/blob/master/examples/qt.py, sometimes I click the QLineEdit,  but it can not get the focus,

Czarek Tomczak

unread,
Nov 4, 2017, 11:29:11 AM11/4/17
to CEF Python
What if you first remove focus from CEF browser by calling Browser.SetFocus(False)?

Czarek Tomczak

unread,
Nov 4, 2017, 11:30:54 AM11/4/17
to CEF Python
What Qt version? Can you provide example?

Wenxiang He

unread,
Nov 4, 2017, 11:37:58 AM11/4/17
to CEF Python
I added browser.SetFocus(False) in updateState, could not work either

Wenxiang He

unread,
Nov 4, 2017, 11:40:40 AM11/4/17
to CEF Python
[qt.py] CEF Python 57.0
[qt.py] Python 3.6.3 32bit
[qt.py] PyQt 5.9 (qt 5.9.1)

Wenxiang He

unread,
Nov 5, 2017, 2:24:55 AM11/5/17
to CEF Python
This issue only occur in pyqt5, pyside and pyqt4 works fine.

Czarek Tomczak

unread,
Nov 5, 2017, 3:57:44 AM11/5/17
to CEF Python
Thanks for testing. Created an issue to track this bug:
https://github.com/cztomczak/cefpython/issues/404
Reply all
Reply to author
Forward
0 new messages