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 hide the cursor in QT5 ?
QtWS25 Last Chance

How to hide the cursor in QT5 ?

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

    hi:

    I build qt5 on a ARM platform, and need to hide the cursor

    we use QWSServer::setCursorVisible(false) to hide the cursor in qt 4.8 , which function in qt5?

    thanks

    1 Reply Last reply
    0
    • S Offline
      S Offline
      shungo
      wrote on last edited by
      #2

      find the solution:

      QCursor cursor(Qt::BlankCursor);
      QApplication::setOverrideCursor(cursor);
      QApplication::changeOverrideCursor(cursor);

      1 Reply Last reply
      2

      • Login

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