QtWebEngine vs QtWebKit context menu (2)

  • I posted a question about a change in behaviour from QtWebKit to QtWebEngine which is upsetting my users in the QtWebKit sub-forum at https://forum.qt.io/topic/84651/qtwebengine-vs-qtwebkit-context-menu back on 1 Nov.

    Since I didn't receive any reply there, which is unusual in these helpful forums, I am taking the liberty of posting this "bump" here in case anyone who would care to answer it missed it.... ?

  • Lifetime Qt Champion


    As an alternative, did you consider @Konstantin-Tokarev QtWebKit reboot ?

  • @SGaist
    No, I just wish to know whether it is indeed the case that the right-click menu for applying simple styles to selected text is indeed absent in Qt WebEngine or whether there is anything I can do about it?

  • @SGaist
    I am still left in a situation where, if I select text and right-click to bring up a context menu:

    • Under QtWebKit I am offered items to change the selection's font.
    • Under QtWebEngine I am not offered any font changing items.

    I know nothing about these technologies, so I am looking for a statement along the lines of: "this behaviour has nothing to do with Qt itself, the context menu features like these are built into WebKit or WebEngine/Chromium themselves", if that is the case?

    Furthermore, under QtWebEngine I thought http://doc.qt.io/qt-5/qwebengineview.html#contextMenuEvent would allow me to deal with this. However, although the docs do not mention this, I believe that such context menu events are only fired if no text is selected, i.e. the context menu event is against the "background" page; once text is selected, instead the WebKit/Engine view handles the context menu itself. Is this correct too?

    Thank you.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.