How to hide the cursor in QT5 ?



  • 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



  • find the solution:

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


Log in to reply
 

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