Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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