[FIX] WebviewWidget: WebEngine Don't Grab Focus on setHtml#1983
Merged
ajdapretnar merged 1 commit intobiolab:masterfrom Feb 20, 2017
Merged
[FIX] WebviewWidget: WebEngine Don't Grab Focus on setHtml#1983ajdapretnar merged 1 commit intobiolab:masterfrom
ajdapretnar merged 1 commit intobiolab:masterfrom
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 +4Continue to review full report at Codecov.
|
3e03475 to
99b7ffe
Compare
Contributor
|
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. |
Member
|
I could not reproduce this either (I'm using Qt 5.6). |
Contributor
|
I have the bug. (Qt 5.6) |
Contributor
Author
|
@astaric running on anaconda? |
99b7ffe to
be020d8
Compare
Contributor
Author
If running on WebEngine the call to setHtml grabs focus and sets it to WebViewWidget. Prevent such behaviour.
be020d8 to
6a5a8bc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue
If running on WebEngine the call to
setHtmlgrabs 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
setHtmlto that the widget's state is first set to disabled, then callsuper().setHtlmand finally restore the initial state.Includes