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. Latest Ubuntu 24.04 kernel makes mouse pointer position wrong in any Qt text edit
Qt 6.11 is out! See what's new in the release blog

Latest Ubuntu 24.04 kernel makes mouse pointer position wrong in any Qt text edit

Scheduled Pinned Locked Moved Solved General and Desktop
9 Posts 4 Posters 696 Views 3 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.
  • JonBJ Offline
    JonBJ Offline
    JonB
    wrote on last edited by
    #1

    On the off chance anyone might have a suggestion, or experience this. It is the most annoying "glitch" ever... :(

    Full details are in https://askubuntu.com/questions/1563901/latest-kernel-6-17-0-14-generic-breaks-mouse-click-in-text. Briefly, I use Ubuntu 24.04 running inside VirtualBox. The Qt is the 6.4.2 which shipped with 24.04. All my developing has been fine for two years.

    As of today they upgraded the Ubuntu kernel from 6.14 to 6.17. Now when I am either text editing in Creator, or in, say, a QPlainTextEdit in a Qt program of mine, the mouse cursor position for all clicks, drags etc. is "off" by about one line. Clicking in a line selects or puts the I-beam cursor into the same position on the line above. It seems to be related to the exact position of the pixel clicked. Whatever it is, it is quite different from up until yesterday. As a present/short-term workaround I have made grub revert to the last kernel, 6.14, and all is well there. But that won't be available for much longer.

    Trying various texty-editory applications (such as gedit or PyCharm) I believe this apparently only affects Qt ones (like Creator or my own), I think non-Qt ones do not show this problem. So what in the world in a kernel update could affect Qt text/editing but not others?? I think I saw the update included e.g. new "mesa" drivers, is that possible?

    For a while I can use the older 6.14 kernel. But if & when at some point I get upgraded that will disappear from the Ubuntu repo. And I will be left with an Ubuntu which is simply unusable for any Qt development.... :@

    Any thoughts at all as to what in Qt but not elsewhere could be affected?

    1 Reply Last reply
    1
    • JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #9

      Further to my https://askubuntu.com/questions/1563901/latest-kernel-6-17-0-14-generic-breaks-mouse-click-in-text, that is now receiving other responses & posts with the same issue. Kernel 6.17 does not have its mouse work correctly/as it used to when inside any Qt application --- your own or Creator or kate etc.

      We will have to wait to see where the problem lies, i.e. will a future kernel version be altered to make it work again or does a fault requiring a change lie inside Qt's code? For now I will mark this as the solution and hope for a future resolution....

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

        Hi,

        Do you also see this in Kate ?
        6.17 is also breaking things with Nvidia drivers that are not even a year old...

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

        JonBJ 2 Replies Last reply
        0
        • SGaistS SGaist

          Hi,

          Do you also see this in Kate ?
          6.17 is also breaking things with Nvidia drivers that are not even a year old...

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #3

          @SGaist said in Latest Ubuntu 24.04 kernel makes mouse pointer position wrong in any Qt text edit:

          Do you also see this in Kate ?

          What/who is "Kate"? :)

          SGaistS 1 Reply Last reply
          0
          • JonBJ JonB

            @SGaist said in Latest Ubuntu 24.04 kernel makes mouse pointer position wrong in any Qt text edit:

            Do you also see this in Kate ?

            What/who is "Kate"? :)

            SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #4

            @JonB KDE's versatile editor :-)

            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
            1
            • SGaistS SGaist

              Hi,

              Do you also see this in Kate ?
              6.17 is also breaking things with Nvidia drivers that are not even a year old...

              JonBJ Offline
              JonBJ Offline
              JonB
              wrote on last edited by JonB
              #5

              @SGaist said in Latest Ubuntu 24.04 kernel makes mouse pointer position wrong in any Qt text edit:

              Do you also see this in Kate ?

              Yes! I installed the Ubuntu repo one via apt install, which is how I stick to all things Qt. I noticed that kate turns out to be Qt5: it is version 23.08.5, built against Qt 5.15.13. All my stuff is the 24.04-supplied Qt 6.4.2. So the problem is independent of the Qt version, but nonetheless seems to affect only Qt applications from what I can tell. Any ideas what this could be about?

              At https://askubuntu.com/questions/1563901/latest-kernel-6-17-0-14-generic-breaks-mouse-click-in-text I have received one suggestion:

              Try uninstalling linux*6.17* and linux-*-hwe* then installing linux-image-generic

              I don't know what this is about, and I have never had to do anything like this in the past. I may try it. So long as it does not destroy and lock me out of the Ubuntu because of my VirtualBox host/client, which for all I know won't play right with some different kernel, and I don't want to lose it over this....

              jsulmJ 1 Reply Last reply
              0
              • JonBJ JonB

                @SGaist said in Latest Ubuntu 24.04 kernel makes mouse pointer position wrong in any Qt text edit:

                Do you also see this in Kate ?

                Yes! I installed the Ubuntu repo one via apt install, which is how I stick to all things Qt. I noticed that kate turns out to be Qt5: it is version 23.08.5, built against Qt 5.15.13. All my stuff is the 24.04-supplied Qt 6.4.2. So the problem is independent of the Qt version, but nonetheless seems to affect only Qt applications from what I can tell. Any ideas what this could be about?

                At https://askubuntu.com/questions/1563901/latest-kernel-6-17-0-14-generic-breaks-mouse-click-in-text I have received one suggestion:

                Try uninstalling linux*6.17* and linux-*-hwe* then installing linux-image-generic

                I don't know what this is about, and I have never had to do anything like this in the past. I may try it. So long as it does not destroy and lock me out of the Ubuntu because of my VirtualBox host/client, which for all I know won't play right with some different kernel, and I don't want to lose it over this....

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #6

                @JonB said in Latest Ubuntu 24.04 kernel makes mouse pointer position wrong in any Qt text edit:

                I don't know what this is about

                It is a suggestion to downgrade the kernel to the original one (instead of the latest hwe update).

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                JonBJ 1 Reply Last reply
                1
                • jsulmJ jsulm

                  @JonB said in Latest Ubuntu 24.04 kernel makes mouse pointer position wrong in any Qt text edit:

                  I don't know what this is about

                  It is a suggestion to downgrade the kernel to the original one (instead of the latest hwe update).

                  JonBJ Offline
                  JonBJ Offline
                  JonB
                  wrote on last edited by
                  #7

                  @jsulm
                  Ah, right. Well, the previous (hwe?) 6.14 is working fine, so I might as well stick with that, at least for now? But I know at next update that will disappear. And as soon as I accept some update it will presumably move to the latest (>= 6.17) and I will be stuck, because the 6.14 will have been removed. Maybe the "generic" will remain available?

                  JoeCFDJ 1 Reply Last reply
                  0
                  • JonBJ JonB

                    @jsulm
                    Ah, right. Well, the previous (hwe?) 6.14 is working fine, so I might as well stick with that, at least for now? But I know at next update that will disappear. And as soon as I accept some update it will presumably move to the latest (>= 6.17) and I will be stuck, because the 6.14 will have been removed. Maybe the "generic" will remain available?

                    JoeCFDJ Offline
                    JoeCFDJ Offline
                    JoeCFD
                    wrote on last edited by
                    #8

                    @JonB I would try to use the latest Qt on Ubuntu 24.04. Do not follow Ubuntu for Qt and it seems Ubuntu is slow to upgrade Qt(same with gstreamer). I use the latest Qt6 even on 22.04.

                    1 Reply Last reply
                    1
                    • JonBJ Offline
                      JonBJ Offline
                      JonB
                      wrote on last edited by
                      #9

                      Further to my https://askubuntu.com/questions/1563901/latest-kernel-6-17-0-14-generic-breaks-mouse-click-in-text, that is now receiving other responses & posts with the same issue. Kernel 6.17 does not have its mouse work correctly/as it used to when inside any Qt application --- your own or Creator or kate etc.

                      We will have to wait to see where the problem lies, i.e. will a future kernel version be altered to make it work again or does a fault requiring a change lie inside Qt's code? For now I will mark this as the solution and hope for a future resolution....

                      1 Reply Last reply
                      0
                      • JonBJ JonB has marked this topic as solved on

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved