Bug 393725

Summary: Copy disabled in context menu with Qt 5.11 beta 4
Product: [Applications] Falkon Reporter: Antonio Rojas <arojas>
Component: generalAssignee: David Rosca <nowrep>
Status: RESOLVED UPSTREAM    
Severity: normal CC: jodr666, kde, pavbaranov, pedrohue
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Antonio Rojas 2018-05-01 11:31:37 UTC
With Qt 5.11 beta 4, the Copy entry in the context menu is always disabled when text is selected. It is still possible to copy via the Control-C shortcut. Worked fine with beta 3.
Comment 1 Pawel 2018-05-07 16:22:11 UTC
I can confirm.
Comment 2 David Rosca 2018-05-08 08:46:35 UTC
That would mean QWebEnginePage::Copy action is not properly updated by QtWebEngine. Please report it upstream.
Comment 3 Pawel 2018-05-08 11:35:04 UTC
(In reply to David Rosca from comment #2)
> That would mean QWebEnginePage::Copy action is not properly updated by
> QtWebEngine. Please report it upstream.

This is really strange. I have two webbrowsers build against of Qt5.11 beta 4: Falkon (3.0.99 (b6edd26c) - as you can see it's "GIT" version) and Otter-Browser (0.9.98 weekly 225 - from "GIT", too), both based on Qt5, too. 
In Falkon, copy entry in the context menu is disabled, but I can copy from context menu in Otter Browser (with qt5-webengine backend).
Comment 4 David Rosca 2018-05-08 11:48:44 UTC
That's not strange, otter probably just checks if selectedText() is not empty to enable copy action.
But the bug here is in QtWebEngine not properly updating QWebEnginePage::Copy action - it was working up to beta3 so it's clearly regression there.
Comment 5 Pawel 2018-05-08 15:14:07 UTC
Ok. Thank David for info. And just only for information, too. Unfortunetly, on falkon builds against of Qt5.11RC this bug occurs, too.

BTW, there are even more regressions in Qt5.11 since beta4 :(
Comment 6 David Rosca 2018-05-11 19:08:15 UTC
*** Bug 394141 has been marked as a duplicate of this bug. ***
Comment 7 Pawel 2018-05-18 11:33:20 UTC
QTBUG: https://bugreports.qt.io/browse/QTBUG-68354
Comment 8 Patrick Silva 2018-06-14 14:31:41 UTC
*** Bug 395188 has been marked as a duplicate of this bug. ***
Comment 9 Pawel 2018-06-14 16:55:25 UTC
There is patch for Qt 5.11.1. Everyone can applied it for Qt 5.11.0. It works.
Comment 10 Christoph Feck 2018-06-30 13:27:10 UTC
*** Bug 395755 has been marked as a duplicate of this bug. ***