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 touch whit this code :QWSServer::setCursorVisible( true ) on friendly arm.

How to enable touch whit this code :QWSServer::setCursorVisible( true ) on friendly arm.

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 692 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.
  • MhM93M Offline
    MhM93M Offline
    MhM93
    wrote on last edited by MhM93
    #1

    as follow this link: https://forum.qt.io/topic/7524/hide-mouse-pointer/5
    I have problem for hide mouse pointer and I use this code for hiding that:

    #include <QWSServer>
    int main(int argc, char *argv[])
    {
    
       QApplication a(argc, argv);
       #ifdef Q_WS_QWS
       QWSServer::setCursorVisible( false);
       #endif 
       ........
    

    after this code my pointer is hide, BUT the touch is not worked for me. then I change the false to true but nothing changed just show the cursor at first but when i touch the screen the cursor hide and the buttons in my App not work, how can I active my touch on my arm device?
    this is my device profile:

    export QWS_MOUSE_PROTO=Tslib:/dev/touchscreen-1wire
    export QWS_KEYBOARD=TTY:/dev/tty1
    

    H.Ghassami

    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