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. Mouse tracking working intermittently after full screen
Forum Updated to NodeBB v4.3 + New Features

Mouse tracking working intermittently after full screen

Scheduled Pinned Locked Moved Unsolved General and Desktop
mac
8 Posts 2 Posters 2.5k 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.
  • K Offline
    K Offline
    kegon
    wrote on last edited by
    #1

    My application has some widgets that use setMouseTracking(true) so that they can receive move events and react to mouse hover.

    This works fine in practice. However, my application has a feature where you can open a new detached widget and showFullScreen(). After closing the full screen widget, focus returns to my main window but mouse tracking is no longer working.

    I can interact with widgets as if the window has normal focus. I implemented a quick check and confirmed that widgets that are supposed to have tracking still hasMouseTracking() == true

    After a lot of clicking around, the widgets in question eventual return to active mouse tracking.

    Is there some aspect of focus that Mac handles differently ? - On Linux I don't have this problem at all.

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

      Hi,

      Fullscreen in OS X and fullscreen in other OSes are different beasts so you may very well have uncovered something.

      Can you reproduce that with a minimal compilable example ?

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

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kegon
        wrote on last edited by
        #3

        I tried to make a minimal example but so far I cannot replicate the problem.

        It's very weird. If I only move the mouse over the window, on and off of the tracked widgets without any clicking then eventually tracking will re-activate.

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

          Got any mouse event related function reimplement in one of your widgets ?

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

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kegon
            wrote on last edited by
            #5

            Mouse tracking on two custom widgets as I already mentioned, a QGraphicsView/Scene with dropEvents and mouse event stuff for clicking and dragging graphics items around.

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

              Did you call the base class implementation in your re-implented version ?

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

              1 Reply Last reply
              0
              • K Offline
                K Offline
                kegon
                wrote on last edited by
                #7

                I tried with and without but it made no difference.

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

                  Then one thing you can do is disable all your widgets and enable them one by one until you have the bug starting again.

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

                  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