Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QtWebEngine vs QtWebKit context menu (2)

QtWebEngine vs QtWebKit context menu (2)

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 1.2k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • JonBJ Offline
    JonBJ Offline
    JonB
    wrote on last edited by
    #1

    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.... ?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      JonBJ 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

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

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by
        #3

        @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?

        1 Reply Last reply
        0
        • JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @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.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved