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

Hide cursor when mouse moves over a widget ...



  • Hello,

    I would like to set a blank mouse cursor when the mouse moves over a certain widget (I am using a QWindow so I used the function QWidget::createWindowContainer()).

    I used the setCursor() function with Qt::BlankCursor as the supplied argument but it had no effect.

    How can I have the mouse disappear when the mouse moves over the widget?

    Thank you.


  • Lifetime Qt Champion

    Hi,

    When / where are you calling setCursor ?


Log in to reply