Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt 5.8.0 embedded, LinuxFB, integrate mouse
QtWS25 Last Chance

Qt 5.8.0 embedded, LinuxFB, integrate mouse

Scheduled Pinned Locked Moved Solved Installation and Deployment
embedded linuxqt5.8.0mouse
4 Posts 2 Posters 5.8k 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.
  • M Offline
    M Offline
    Mosolov
    wrote on last edited by Mosolov
    #1

    I have an ARM board with embedded linux and Qt5.8.0 with linuxfb. I'm using the following script to run the QtQuick2 app:

    export QML2_IMPORT_PATH=/usr/lib/qt/qml
    export QT_QPA_FONTDIR=/usr/lib/fonts
    
    export QT_QPA_PLATFORM=linuxfb:fb=/dev/fb0
    export QT_QPA_EGLFS_DEBUG=1
    export QT_QPA_EGLFS_NO_LIBINPUT=1
    export QT_QPA_FB_HIDECURSOR=0
    
    export QT_LOGGING_RULES=qt.qpa.input=true
    
    ./qmlplot -platform linuxfb -plugin tslib:/dev/input/mice
    

    I also has Qt4.8.6 on that target board and I was able to integrate mouse with the following script:

    export GCONV_PATH=/lib/gconv
    export TSLIB_TSDEVICE=/dev/input/mice
    export TSLIB_FBDEVICE=/dev/fb0
    export QWS_MOUSE_PROTO=IntelliMouse:/dev/input/mice
    export TSLIB_CONFFILE=/etc/ts.conf
    export TSLIB_PLUGINDIR=/usr/lib/ts
    export TSLIB_CONSOLEDEVICE=none
    export TSLIB_CALIBFILE=/etc/pointercal
    
    /var/bacs/data/gui -qws -display linuxfb:/dev/fb0
    

    I'm not able to use mouse with the first script and Qt5, however it's possible with qt4.8.6 with the provided script.
    I suggest that the key difference in the "QWS_MOUSE_PROTO=IntelliMouse:/dev/input/mice", to be more specific, I believe that "IntelliMouse" describes protocol that input device (e.g. mouse) implementing. I've tried to pass this parameter in Qt5 script by different approaches, but so far it doesn't helped.

    Does anyone knows equivalent for "QWS_MOUSE_PROTO=IntelliMouse:/dev/input/mice" in Qt5?

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

      Hi and welcome to devnet,

      You can find more information about the input devices here.

      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

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Mosolov
        wrote on last edited by Mosolov
        #3

        Rebuilding Qt5 with evdev helps me to solve the problem. Here are the running script exactly:

        export QML2_IMPORT_PATH=/usr/lib/qt/qml
        export QT_QPA_FONTDIR=/usr/lib/fonts
        export QT_PLUGIN_PATH=/usr/lib/qt/plugins
        
        export QT_QPA_PLATFORM=linuxfb:fb=/dev/fb0
        export QT_QPA_EGLFS_DEBUG=1
        export QT_QPA_EGLFS_NO_LIBINPUT=1
        export QT_QPA_FB_HIDECURSOR=0
        export QT_QPA_EVDEV_MOUSE_PARAMETERS=/dev/input/event0:grab
        
        export QT_LOGGING_RULES=qt.qpa.input=true
        
        /var/bacs/data/qmlplot/qmlplot
        

        'export QT_QPA_EVDEV_MOUSE_PARAMETERS=/dev/input/event0:grab' solves the issue with mouse.
        Tinkering on Qt5 source code didn't let me find QWS_PROTO analog in QPA.

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

          Because QWS is Qt 4 only.

          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