Priority: Not Evaluated
Affects Version/s: None
Fix Version/s: None
Qt::ImhNoEditMenu for example is a way to hide this menu. By default the menu contains menu items Select, Select All and Paste when text is not yet selected, or Cut, Copy, Paste and Delete when text is selected. (In fact, it's difficult to get the Cut, Copy, Paste and Delete menu at all, when trying to implement a custom item. Normally when a selection is provided, the Select/SelectAll/Paste menu continues to show anyway. Only the pre-existing text components managed to get that second menu working right, somehow. That's a consequence of the passive event-handling API - not enough control, not enough docs, it's completely mysterious from the application point of view.)
So one idea is to add another hint like Qt::ImhReadOnly which will remove the Cut, Paste and Delete items, and make a Copy item available (even on the first menu, since the second one is so hard to get).
A better idea would be to give the application full control over the menu items in that menu, to say the least.
|For Gerrit Dashboard: QTBUG-83811|
|293222,23||Support text selection handles in PDF views||5.15||qt/qtwebengine||Status: MERGED||+2||0|
|298020,4||WIP custom menu to go with selection handles||5.15||qt/qtwebengine||Status: ABANDONED||-2||0|
|298508,2||iOS: Teach edit menu popover to have a readonly mode||5.15||qt/qtbase||Status: MERGED||+2||0|