-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[FIX] WebviewWidget: WebEngine Don't Grab Focus on setHtml #1983
Conversation
f135089
to
3e03475
Compare
Codecov Report
@@ Coverage Diff @@
## master #1983 +/- ##
==========================================
- Coverage 70.22% 70.21% -0.01%
==========================================
Files 343 343
Lines 54092 54097 +5
==========================================
+ Hits 37984 37985 +1
- Misses 16108 16112 +4 Continue to review full report at Codecov.
|
3e03475
to
99b7ffe
Compare
I don't have the mentioned problem (using qt 5.8). But the fix does not seem to break anything for me either. Could you add a TODO or something like that to the comment and mention that this might be fixed in newer versions, so that we can remove the fix in the future if it will not be necessary anymore. |
I could not reproduce this either (I'm using Qt 5.6). |
I have the bug. (Qt 5.6) |
@astaric running on anaconda? |
99b7ffe
to
be020d8
Compare
If running on WebEngine the call to setHtml grabs focus and sets it to WebViewWidget. Prevent such behaviour.
be020d8
to
6a5a8bc
Compare
Issue
If running on WebEngine the call to
setHtml
grabs focus and sets it to WebViewWidget. This is quite annoying behaviour when for example one would like to filter some data set and show the results in WebView. Due to WebViewWidget's focus grabbing the input filter looses focus after every character is typed.Description of changes
Override
setHtml
to that the widget's state is first set to disabled, then callsuper().setHtlm
and finally restore the initial state.Includes