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. QWebview disabled
Forum Updated to NodeBB v4.3 + New Features

QWebview disabled

Scheduled Pinned Locked Moved General and Desktop
6 Posts 2 Posters 3.3k 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.
  • J Offline
    J Offline
    Jupiter
    wrote on last edited by
    #1

    when i call setEnabled(false) on a QWebview, a mouse hover still changes the cursor to an reading-glass. is that an intended behavior? how can i avoid it?

    thanks in advance

    Nazgul

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Have you tried disabling mouse tracking? (QWidget::setMouseTracking()).
      Or, you can reimplement the QMouseMoveEvent() and tell the cursor not to change, although that might be an overkill, as I might be missing something important here.

      I do not know if that's intentional. I didn't work with QWebView much, to be honest. And if I remember well, there are going to be some big changes to webView in Qt5.

      (Z(:^

      1 Reply Last reply
      0
      • J Offline
        J Offline
        Jupiter
        wrote on last edited by
        #3

        thanks, ill try the mouse tracking thing. i don't want to subclass web view for that little thing, and qt5 doesn't help me yet :)

        1 Reply Last reply
        0
        • J Offline
          J Offline
          Jupiter
          wrote on last edited by
          #4

          ok, i tried it. got really strange behavior now. when i enter the image the first time i geht the reading-glass cursor. when i enter it the second time it stays the default cursor

          1 Reply Last reply
          0
          • sierdzioS Offline
            sierdzioS Offline
            sierdzio
            Moderators
            wrote on last edited by
            #5

            I'm a tad busy today, and no immediate answer comes to my mind, apart from a cruel workaround: try firing mouse move event yourself (in the code), just after you setEnabled(false) and setMouseTracking(false). It may work as a dummy event that would serve as this "first time" primer.

            If that doesn't solve it, I won't be able to help you until tomorrow, sorry.

            (Z(:^

            1 Reply Last reply
            0
            • J Offline
              J Offline
              Jupiter
              wrote on last edited by
              #6

              i was thinking about installing an event filter on the view. but thats not better either :)

              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