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. [SOLVED] MainWindow with MouseMoveEvent working on Linux, but not on OSX
Qt 6.11 is out! See what's new in the release blog

[SOLVED] MainWindow with MouseMoveEvent working on Linux, but not on OSX

Scheduled Pinned Locked Moved General and Desktop
3 Posts 1 Posters 3.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.
  • M Offline
    M Offline
    miketopen
    wrote on last edited by
    #1

    Hi,

    I have a program which takes heavy usage of the MouseMoveEvent for Mouseover highlighting in a OpenGl scene. The program runs with Qt 4.8 fine on Linux, Windows and OSX. Now, I ported the Linux and the OSX version to Qt5. The Linux version works still as aspected, whereas in the OSX version the MouseMoveEvent is not excuted when moving the mouse without pressing any key.
    I didn't use any Eventfilter, with Qt 4.8 it was enough to simply set Mousetracking to true. When trying it with a simple
    example on Qt5, again the setMouseTracking(true) command is enough to let it work. Therefore, here is my question:

    How can I check if the MouseMouveEvent is spawned and/or why do I see nothing. Properly I would like to have some suggestions for debugging.

    [UPDATE]

    Finally I had some time to spend on this issue here, and was also able to create a simple example reproducing the behaviour. But step by step: first the mousemoveevent is working under certain circumstances. The problem lies in the mainwindow-class of Qt. The example shows that nicely.

    In the example we have a mainwindow with a simple QGLwidget and a statusbar. Now when the QGLWidget is entered with the mouse cursor over the statusbar, then the mousemoveevent is not working. If we enter the widget from any other side, it is working fine. For me it looks like an actual bug of Qt? But maybe I made a mistake.

    The example can be downloaded by: git clone https://github.com/mikenicolai/qt5-mousemoveevent-bug.git

    I would be happy for any suggestion!

    Bests

    Mike
    

    www.topen.org

    1 Reply Last reply
    0
    • M Offline
      M Offline
      miketopen
      wrote on last edited by
      #2

      The bug can be also found (since yesterday) in the "bug tracker":https://bugreports.qt-project.org/browse/QTBUG-30614?page=com.atlassian.jira.plugin.system.issuetabpanels:changehistory-tabpanel

      www.topen.org

      1 Reply Last reply
      0
      • M Offline
        M Offline
        miketopen
        wrote on last edited by
        #3

        The bug is solved with the new Qt 5.1 beta 1 version.

        Thanks to the developer :-)

          Mike
        

        www.topen.org

        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