Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. run program in framebuffer but mouse is not showing up?

run program in framebuffer but mouse is not showing up?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
5 Posts 2 Posters 1.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.
  • Q Offline
    Q Offline
    qtpi
    wrote on last edited by
    #1

    hey guys. I'm running a simple helloworld pushbutton program in frambuffer. Everything works fine except the mouse is not showing up. So is it suppose to be like this or should I set some environment variable to enable mouse?
    First time I tried to run it without doing anything, mouse not shown. 2nd time I exported QT_QPA_FB_HIDECURSOR=0, still no mouse.

    Thanks in advance for the help!

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

      Hi and welcome to devnet,

      What device are you running on ? What kind of mouse it ?

      In any case, if you are running embedded linux, here you have some more information about the setup of various aspects line input handling.

      Hope it helps

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

      Q 2 Replies Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        What device are you running on ? What kind of mouse it ?

        In any case, if you are running embedded linux, here you have some more information about the setup of various aspects line input handling.

        Hope it helps

        Q Offline
        Q Offline
        qtpi
        wrote on last edited by
        #3

        @SGaist hi, thanks for the reply. it's working on a raspberry pi (raspbian jessie), I'm using a normal wireless mouse and it works perfectly in xorg, so I suppose it should work well in framebuffer too, maybe my assumption is wrong.

        1 Reply Last reply
        0
        • SGaistS SGaist

          Hi and welcome to devnet,

          What device are you running on ? What kind of mouse it ?

          In any case, if you are running embedded linux, here you have some more information about the setup of various aspects line input handling.

          Hope it helps

          Q Offline
          Q Offline
          qtpi
          wrote on last edited by qtpi
          #4

          @SGaist update: I solved the problem by setting the environment variable QT_QPA_GENERIC_PLUGINS=evdevmouse. it seems I went to the wrong page in first place, my qt is 5.3.2. so I need to enable the input device.

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

            You're welcome !

            Xorg handles several aspects including the input management. However, when using the frame buffer directly, it's your application's role to handle input and depending on your device, some hints are needed.

            Since you have it working now, please mark the thread as solved using the "Topic Tool" button so that other forum users may know a solution has been found :)

            Also, while browsing the forum, consider up-voting answers that helped you, it will make them easier to find for other users :)

            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