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. qt and tslib configuration
Forum Updated to NodeBB v4.3 + New Features

qt and tslib configuration

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
tslib
2 Posts 2 Posters 3.2k 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.
  • P Offline
    P Offline
    pioter
    wrote on 7 Jan 2018, 17:04 last edited by
    #1

    Hi,

    I have problem with my application in qt5. I am using an RaspberryPi 2 with touchscreen 4dpi-32. The touch screen was correctly installed. I can properly run ts_calibrate. If I run my app in linuxfb, the app don’t response on click on button.

    Input for touchscreen is event2

    QT += core gui

    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

    TARGET = myapp
    TEMPLATE = app

    DEFINES += QT_DEPRECATED_WARNINGS

    SOURCES +=
    main.cpp
    mainwindow.cpp

    HEADERS +=
    mainwindow.h

    FORMS +=
    mainwindow.ui

    My script:

    export QT_QPA_PLATFORM=linuxfb:fb=/dev/fb1
    export QT_QPA_FB_TSLIB=1
    export TSLIB_TSEVENTTYPE=INPUT
    export TSLIB_CONSOLEDEVICE=none
    export TSLIB_FBDEVICE=/dev/fb1
    export TSLIB_TSDEVICE=/dev/input/event2
    export TSLIB_CALIBFILE=/etc/pointercal
    export TSLIB_CONFFILE=/etc/ts.conf

    cd /home/pi/myapp
    ./myapp

    Tha app run with mouse and keyboard properly

    1 Reply Last reply
    0
    • R Offline
      R Offline
      RunThiner
      wrote on 10 Jan 2018, 12:39 last edited by
      #2

      have you add "LIBS += -lts" in your pro file?

      1 Reply Last reply
      0

      2/2

      10 Jan 2018, 12:39

      • Login

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