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. User of Qt app needs Mouse cursor size help
QtWS25 Last Chance

User of Qt app needs Mouse cursor size help

Scheduled Pinned Locked Moved Unsolved General and Desktop
13 Posts 3 Posters 2.1k Views
  • 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.
  • D Offline
    D Offline
    Dinosaur1946
    wrote on 11 Jun 2023, 08:41 last edited by Dinosaur1946 6 Nov 2023, 09:21
    #1

    Hi All
    Have searched for the correct place to post this, so if wrong please correct me.

    I am using an application that was developed in Qt6 for the 4WD market.
    Basically it allows the user to plot routes along 4wd tracks and follow them.
    The app is on an industrial PC, mounted in the vehicle with an 11" lcd.

    Their main target audience is Windows & iOS.
    However they ported the utility to Linux but refuse to offer support for it,
    So I am looking to solve a problem with the mouse cursor size, which is minuscule
    and rejects all attempts to grow it's size.

    The hours of googling seem to all come back to "export XCURSOR_SIZE=48" for example.
    In Ubuntu 20.04 I managed to get the same size cursor as the system, but only after the
    app was terminated from it's 'Autostart" and then restarted.

    In Debian Bookworm (which I am migrating to) that doesn't work.
    I was hoping there was a command line argument that would affect the mouse, but haven't found that either.
    Obviously I can't re-compile this commercial application, so.......

    Can someone please tell me if there are configuration files that I can edit to resolve this
    or by any other means

    Regards

    It's the end result that matters, not the tools used to get there.

    S 1 Reply Last reply 11 Jun 2023, 19:18
    0
    • D Dinosaur1946
      11 Jun 2023, 08:41

      Hi All
      Have searched for the correct place to post this, so if wrong please correct me.

      I am using an application that was developed in Qt6 for the 4WD market.
      Basically it allows the user to plot routes along 4wd tracks and follow them.
      The app is on an industrial PC, mounted in the vehicle with an 11" lcd.

      Their main target audience is Windows & iOS.
      However they ported the utility to Linux but refuse to offer support for it,
      So I am looking to solve a problem with the mouse cursor size, which is minuscule
      and rejects all attempts to grow it's size.

      The hours of googling seem to all come back to "export XCURSOR_SIZE=48" for example.
      In Ubuntu 20.04 I managed to get the same size cursor as the system, but only after the
      app was terminated from it's 'Autostart" and then restarted.

      In Debian Bookworm (which I am migrating to) that doesn't work.
      I was hoping there was a command line argument that would affect the mouse, but haven't found that either.
      Obviously I can't re-compile this commercial application, so.......

      Can someone please tell me if there are configuration files that I can edit to resolve this
      or by any other means

      Regards

      S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 11 Jun 2023, 19:18 last edited by
      #2

      Hi and welcome to devnet,

      Are you sure you are using Xorg with Bookworm ?

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

      D 1 Reply Last reply 11 Jun 2023, 20:03
      0
      • S SGaist
        11 Jun 2023, 19:18

        Hi and welcome to devnet,

        Are you sure you are using Xorg with Bookworm ?

        D Offline
        D Offline
        Dinosaur1946
        wrote on 11 Jun 2023, 20:03 last edited by
        #3

        @SGaist
        Thank you and for the reply.

        echo $XDG_SESSION_TYPE
        x11
        

        I had already disabled Wayland because of it's incompatibility with osd_cat

        Regards

        It's the end result that matters, not the tools used to get there.

        D 1 Reply Last reply 11 Jun 2023, 23:05
        0
        • D Dinosaur1946
          11 Jun 2023, 20:03

          @SGaist
          Thank you and for the reply.

          echo $XDG_SESSION_TYPE
          x11
          

          I had already disabled Wayland because of it's incompatibility with osd_cat

          Regards

          D Offline
          D Offline
          Dinosaur1946
          wrote on 11 Jun 2023, 23:05 last edited by
          #4

          Hi All

          Qt6 was not installed on my machine, as all the qt6 files and folders were in the application folder.
          So, I installed Qt6ct (and it's associated libraries) and tried setting the theme different.
          However it did not change the problem.
          qt6ct does report that QT_QPA_PLATFORMTHEME was not set, however printing the env shows it is set ??

          Regards

          It's the end result that matters, not the tools used to get there.

          D 1 Reply Last reply 12 Jun 2023, 07:46
          0
          • D Dinosaur1946
            11 Jun 2023, 23:05

            Hi All

            Qt6 was not installed on my machine, as all the qt6 files and folders were in the application folder.
            So, I installed Qt6ct (and it's associated libraries) and tried setting the theme different.
            However it did not change the problem.
            qt6ct does report that QT_QPA_PLATFORMTHEME was not set, however printing the env shows it is set ??

            Regards

            D Offline
            D Offline
            Dinosaur1946
            wrote on 12 Jun 2023, 07:46 last edited by
            #5

            In the hope that being able to change the theme in Qt6ct will allow a larger mouse pointer,
            I have put 'export QT_QPA_PLATFORMTHEME=qt6ct'
            in as many places as I could find.
            Debian manual says ~/.profile
            then also;
            /config/qt6ct/qt6ct.conf
            /etc/environment
            /etc/environment.d/90qt-a11y.conf

            It is in all of them and when printing env it shows the variable set.
            Running qt6ct still comes up with the error that the environment variable is not set.
            Have checked and double checked the spelling to no avail.
            So, Qt must not be reading the environment, because when I do it from within one of my applications, it shows.

            Regards

            It's the end result that matters, not the tools used to get there.

            S 1 Reply Last reply 12 Jun 2023, 20:34
            0
            • D Dinosaur1946
              12 Jun 2023, 07:46

              In the hope that being able to change the theme in Qt6ct will allow a larger mouse pointer,
              I have put 'export QT_QPA_PLATFORMTHEME=qt6ct'
              in as many places as I could find.
              Debian manual says ~/.profile
              then also;
              /config/qt6ct/qt6ct.conf
              /etc/environment
              /etc/environment.d/90qt-a11y.conf

              It is in all of them and when printing env it shows the variable set.
              Running qt6ct still comes up with the error that the environment variable is not set.
              Have checked and double checked the spelling to no avail.
              So, Qt must not be reading the environment, because when I do it from within one of my applications, it shows.

              Regards

              S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 12 Jun 2023, 20:34 last edited by
              #6

              Are you using a desktop environment ?

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

              D 1 Reply Last reply 13 Jun 2023, 02:51
              0
              • S SGaist
                12 Jun 2023, 20:34

                Are you using a desktop environment ?

                D Offline
                D Offline
                Dinosaur1946
                wrote on 13 Jun 2023, 02:51 last edited by
                #7

                @SGaist
                Yes,

                echo $XDG_CURRENT_DESKTOP
                x-cinnamon
                

                Regards

                It's the end result that matters, not the tools used to get there.

                S 1 Reply Last reply 14 Jun 2023, 17:03
                0
                • D Dinosaur1946
                  13 Jun 2023, 02:51

                  @SGaist
                  Yes,

                  echo $XDG_CURRENT_DESKTOP
                  x-cinnamon
                  

                  Regards

                  S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 14 Jun 2023, 17:03 last edited by
                  #8

                  Then I would check with them about that issue.

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

                  D 1 Reply Last reply 15 Jun 2023, 09:10
                  0
                  • S SGaist
                    14 Jun 2023, 17:03

                    Then I would check with them about that issue.

                    D Offline
                    D Offline
                    Dinosaur1946
                    wrote on 15 Jun 2023, 09:10 last edited by
                    #9

                    @SGaist

                    Regardless of your knowledge of Qt and my lack thereof, I have to disagree with that conclusion.

                    I have the correct size mouse cursor in Cinnamon and when I open dozens of applications, they respect that cursor size.

                    Now I open my one and only Qt application and as soon as I move the cursor over
                    the Qt app screen, the cursor resizes. Move it back to the Cinnamon desktop and the correct size cursor re-appears.

                    This indicates to me that Qt is dictating the cursor size.

                    Regards

                    It's the end result that matters, not the tools used to get there.

                    S 1 Reply Last reply 15 Jun 2023, 11:33
                    0
                    • D Dinosaur1946
                      15 Jun 2023, 09:10

                      @SGaist

                      Regardless of your knowledge of Qt and my lack thereof, I have to disagree with that conclusion.

                      I have the correct size mouse cursor in Cinnamon and when I open dozens of applications, they respect that cursor size.

                      Now I open my one and only Qt application and as soon as I move the cursor over
                      the Qt app screen, the cursor resizes. Move it back to the Cinnamon desktop and the correct size cursor re-appears.

                      This indicates to me that Qt is dictating the cursor size.

                      Regards

                      S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 15 Jun 2023, 11:33 last edited by
                      #10

                      My bad, I misunderstood your issue when using Cinnamon.

                      Does your application do any changes to the cursor in code ? I would guess not since it did work before, however it does sound surprising that only your application is affected.

                      Do you have the same issue if you build a dummy application with Qt 6 ?
                      Does it also happen if you use the distribution provided Qt 6 packages ?

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

                      D 1 Reply Last reply 15 Jun 2023, 19:47
                      0
                      • S SGaist
                        15 Jun 2023, 11:33

                        My bad, I misunderstood your issue when using Cinnamon.

                        Does your application do any changes to the cursor in code ? I would guess not since it did work before, however it does sound surprising that only your application is affected.

                        Do you have the same issue if you build a dummy application with Qt 6 ?
                        Does it also happen if you use the distribution provided Qt 6 packages ?

                        D Offline
                        D Offline
                        Dinosaur1946
                        wrote on 15 Jun 2023, 19:47 last edited by Dinosaur1946
                        #11

                        @SGaist

                        I have not written or am I knowledgeable on Qt code, so I have not modified the cursor.
                        Te Qt application is supplied by a third party, also the installation is a very basic Debian install, so I would have to find another 3rd party Qt app to try.

                        EDIT: Featherpad (Qt based) has the same problem.

                        It's the end result that matters, not the tools used to get there.

                        D 1 Reply Last reply 19 Jun 2023, 02:13
                        0
                        • D Dinosaur1946
                          15 Jun 2023, 19:47

                          @SGaist

                          I have not written or am I knowledgeable on Qt code, so I have not modified the cursor.
                          Te Qt application is supplied by a third party, also the installation is a very basic Debian install, so I would have to find another 3rd party Qt app to try.

                          EDIT: Featherpad (Qt based) has the same problem.

                          D Offline
                          D Offline
                          Dinosaur1946
                          wrote on 19 Jun 2023, 02:13 last edited by
                          #12

                          Obviously nobody here either recognises it as a Qt or problem or can solve the problem.
                          Account cancelled.

                          It's the end result that matters, not the tools used to get there.

                          jsulmJ 1 Reply Last reply 19 Jun 2023, 05:25
                          0
                          • D Dinosaur1946
                            19 Jun 2023, 02:13

                            Obviously nobody here either recognises it as a Qt or problem or can solve the problem.
                            Account cancelled.

                            jsulmJ Offline
                            jsulmJ Offline
                            jsulm
                            Lifetime Qt Champion
                            wrote on 19 Jun 2023, 05:25 last edited by
                            #13

                            @Dinosaur1946 said in User of Qt app needs Mouse cursor size help:

                            Obviously nobody here either recognises it as a Qt or problem

                            This is user forum mainly driven by volunteers.
                            If you think this is a Qt bug then you should report it here: https://bugreports.qt.io/secure/Dashboard.jspa

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

                            1 Reply Last reply
                            0

                            1/13

                            11 Jun 2023, 08:41

                            • Login

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