How to enable touchscreen for qt application in imx51?



  • 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



  • 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();
    

    }
    @


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.