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. Qt5 application not reacting to click through VNC
QtWS25 Last Chance

Qt5 application not reacting to click through VNC

Scheduled Pinned Locked Moved Mobile and Embedded
vncqt5.5linuxbspimx6
5 Posts 4 Posters 4.5k 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
    deleted184
    wrote on 23 Mar 2016, 13:39 last edited by deleted184
    #1

    Hi guys,
    I'm new to Qt5 and actually i'm working on Qt5 application on a custom board (SoC imx6, Linux 4.1.x ,Buildroot 2015.08.
    1).
    I found a first solution with x11vnc (whose the package is available in Buildroot ), technically it uses
    some of the libraries provided by X BUT i haven't enabled the Xorg server in Buildroot .
    I've successfully got my remote application through a VNC Client

    • On the target:

    I launch the Qt5 application with the following options
    ./myQt5app -platform linuxfb -geometry 500x500 -plugin evdevmouse &

    I start the x11vnc server like this
    x11vnc -noipv6 -rawfb /dev/fb0 -clip 500x500+0+0 -dk -dp

    • On my PC (Windows)

    I ran tightvncclient as you already know.

    My Problem is that my application doesn't react to inputs neither from my mouse nor from my keyboard.

    Is there anybody who arrived to make the inputs work ?

    PS: With -dk and -dp i see that the inputs are well received by the server , BUT , it seems that the the server doesn't redirect inputs to the application or something like that :(

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mmcmmc
      wrote on 24 Mar 2016, 12:33 last edited by
      #2

      Hello,
      I have got same problems with raspberry pi. I can get visual but not mouse or keyboard events.
      I digged http://www.karlrunge.com/x11vnc/x11vnc_opts.html and tried to
      -pipeinput direct_abs=/dev/input/event2 to send events to my device but didn't succeed.

      any more clue?

      1 Reply Last reply
      0
      • D Offline
        D Offline
        deleted184
        wrote on 30 Mar 2016, 14:30 last edited by deleted184
        #3

        I think i've made some progress, but the events from the mouse are not always managed.

        1. I have added the uinput module to the Linux kernel (make menuconfig)
        2. I have created a node as explained in the documentation of x11vnc ( http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-pipeinput )
        3. I start the vncserver firstly with the following command:
          x11vnc -noipv6 -clip 500x500+0+0 -rawfb /dev/fb0 -pipeinput UINPUT:direct_abs= /dev/input/uinput (-dp -dk) &
        4. After that i've checked the /dev/input and noticed that a char node called event0 was created (/dev/input/event0)
        5. Then i can start my Qt5 application like this:
          ./myApp -geometry 500x500 -platform linuxfb -plugin evdevmouse:/dev /input/event0

        Then i can move from one button to another using UP,DOWN,LEFT and RIGHT Key. I can push the buttons using the SPACE button ... that's cool my Application works correctly (^_^)/, but still no click :-( ... still looking...

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tristanramseyer
          wrote on 6 Sept 2019, 13:44 last edited by
          #4

          @bignumb said in Qt5 application not reacting to click through VNC:

          I think i've made some progress, but the events from the mouse are not always managed.

          1. I have added the uinput module to the Linux kernel (make menuconfig)
          2. I have created a node as explained in the documentation of x11vnc ( http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-pipeinput )
          3. I start the vncserver firstly with the following command:
            x11vnc -noipv6 -clip 500x500+0+0 -rawfb /dev/fb0 -pipeinput UINPUT:direct_abs= /dev/input/uinput (-dp -dk) &
          4. After that i've checked the /dev/input and noticed that a char node called event0 was created (/dev/input/event0)
          5. Then i can start my Qt5 application like this:
            ./myApp -geometry 500x500 -platform linuxfb -plugin evdevmouse:/dev /input/event0

          Then i can move from one button to another using UP,DOWN,LEFT and RIGHT Key. I can push the buttons using the SPACE button ... that's cool my Application works correctly (^_^)/, but still no click :-( ... still looking...

          For me the problem was that my Kernel had CONFIG_INPUT_UINPUT not set.

          1 Reply Last reply
          2
          • M Offline
            M Offline
            michaelL
            wrote on 19 Aug 2021, 11:53 last edited by
            #5

            Hi,
            for me the keyboard worked but the mouse didnt.

            export QT_QPA_EGLFS_NO_LIBINPUT=1
            export QT_QPA_EVDEV_MOUSE_PARAMETERS=grab=1
            export QT_QPA_EVDEV_KEYBOARD_PARAMETERS=grab=1
            
            ./myApp  --platform eglfs -plugin evdevmouse:/dev/input/event2
            

            Here is how i start x11vnc:

            x11vnc -noipv6 -rawfb /dev/fb0  -geometry 1920x1080 -pipeinput UINPUT:direct_abs=/dev/uinput -dk -dp
            

            I found something here: https://embeddeduse.com/2016/04/01/remote-support-vnc-harvester-terminal/

            Maybe that is the only way?

            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