Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. Prevent QWebEngineView from taking the focus?
Forum Updated to NodeBB v4.3 + New Features

Prevent QWebEngineView from taking the focus?

Scheduled Pinned Locked Moved Unsolved QtWebEngine
3 Posts 2 Posters 1.6k Views 1 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.
  • A Offline
    A Offline
    agarny
    wrote on last edited by
    #1

    I have a QWebEngineView object which I use to display some information, but I don't want it to take the focus. With WebKit, I used to solve that problem by calling setFocusPolicy() with Qt::NoFocus as a parameter. However, this 'solution' doesn't seem to work with QWebEngineView which still takes the focus no matter what.

    So, is that a 'problem' with QWebEngineView or am I missing something?...

    Cheers, Alan.

    1 Reply Last reply
    1
    • A Offline
      A Offline
      Andriy
      wrote on last edited by
      #2

      Please, read this, maybe this info will be useful QTBUG-52999 .

      A 1 Reply Last reply
      0
      • A Andriy

        Please, read this, maybe this info will be useful QTBUG-52999 .

        A Offline
        A Offline
        agarny
        wrote on last edited by
        #3

        Thanks for the pointer, @Andriy, although I must confess that I have given up on Qt WebEngine. No matter what the Qt guys may say, it's not, in my opinion, ready to replace Qt WebKit, as confirmed by QTBUG-52999 indeed (this won't be fixed before 5.8!), as well as the fact that they still ship the source code for Qt WebKit (and, from what I have seen, correct a few things here and there in Qt WebKit) and that the help in Qt Creator (which I understand now uses Qt WebEngine) doesn't render well anymore, etc.

        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