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.
  • Dinosaur1946D Offline
    Dinosaur1946D Offline
    Dinosaur1946
    wrote on last edited by Dinosaur1946
    #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.

    SGaistS 1 Reply Last reply
    0
    • Dinosaur1946D Dinosaur1946

      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

      SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on 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

      Dinosaur1946D 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        Are you sure you are using Xorg with Bookworm ?

        Dinosaur1946D Offline
        Dinosaur1946D Offline
        Dinosaur1946
        wrote on 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.

        Dinosaur1946D 1 Reply Last reply
        0
        • Dinosaur1946D Dinosaur1946

          @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

          Dinosaur1946D Offline
          Dinosaur1946D Offline
          Dinosaur1946
          wrote on 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.

          Dinosaur1946D 1 Reply Last reply
          0
          • Dinosaur1946D Dinosaur1946

            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

            Dinosaur1946D Offline
            Dinosaur1946D Offline
            Dinosaur1946
            wrote on 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.

            SGaistS 1 Reply Last reply
            0
            • Dinosaur1946D Dinosaur1946

              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

              SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on 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

              Dinosaur1946D 1 Reply Last reply
              0
              • SGaistS SGaist

                Are you using a desktop environment ?

                Dinosaur1946D Offline
                Dinosaur1946D Offline
                Dinosaur1946
                wrote on 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.

                SGaistS 1 Reply Last reply
                0
                • Dinosaur1946D Dinosaur1946

                  @SGaist
                  Yes,

                  echo $XDG_CURRENT_DESKTOP
                  x-cinnamon
                  

                  Regards

                  SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 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

                  Dinosaur1946D 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    Then I would check with them about that issue.

                    Dinosaur1946D Offline
                    Dinosaur1946D Offline
                    Dinosaur1946
                    wrote on 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.

                    SGaistS 1 Reply Last reply
                    0
                    • Dinosaur1946D Dinosaur1946

                      @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

                      SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 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

                      Dinosaur1946D 1 Reply Last reply
                      0
                      • SGaistS SGaist

                        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 ?

                        Dinosaur1946D Offline
                        Dinosaur1946D Offline
                        Dinosaur1946
                        wrote on 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.

                        Dinosaur1946D 1 Reply Last reply
                        0
                        • Dinosaur1946D Dinosaur1946

                          @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.

                          Dinosaur1946D Offline
                          Dinosaur1946D Offline
                          Dinosaur1946
                          wrote on 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
                          0
                          • Dinosaur1946D Dinosaur1946

                            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 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

                            • Login

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