Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    QWebview disabled

    General and Desktop
    2
    6
    2928
    Loading More Posts
    • 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
      Jupiter last edited by

      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 Reply Quote 0
      • sierdzio
        sierdzio Moderators last edited by

        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 Reply Quote 0
        • J
          Jupiter last edited by

          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 Reply Quote 0
          • J
            Jupiter last edited by

            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 Reply Quote 0
            • sierdzio
              sierdzio Moderators last edited by

              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 Reply Quote 0
              • J
                Jupiter last edited by

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

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post