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. How to enable touchscreen for qt application in imx51?
Forum Updated to NodeBB v4.3 + New Features

How to enable touchscreen for qt application in imx51?

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 2.3k Views 1 Watching
  • 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.
  • S Offline
    S Offline
    shakthi
    wrote on last edited by
    #1

    i have currently ported qt application in imx51-arm board.. and i ve enabled touchscreen for qt application using:

    export QWS_MOUSE_PROTO="touchscreenlib:/dev/input0" and done ts_calibrate

    now my touchscreen is working. but the problem is, it take 6 seconds to response.. and also mouse cursor coming with every touch. dont know what to do?? pls anyone tell how to make the touchscreen to work properly for qt application...

    thanks in advance,
    shakthi

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dreamerindia
      wrote on last edited by
      #2

      Hide the mouse cursor by adding "QWSServer::setCursorVisible( false)" in main.cpp as follows,
      @
      int main(int argc, char *argv[])
      {
      QApplication a(argc, argv);

      #ifdef Q_WS_QWS
           QWSServer::setCursorVisible( false );
      #endif
      
      PortableTester w;
      w.show();
      return a.exec();
      

      }
      @

      ~Ravivarman~

      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