https://bugs.kde.org/show_bug.cgi?id=364016

--- Comment #3 from Mauro Carvalho Chehab <mche...@osg.samsung.com> ---
(In reply to Mauro Carvalho Chehab from comment #2)

> On Qt5, AFAIK, there's only one command to hide a mouse: to call
> setCursor(Qt::BlankCursor). This function stores the old mouse on a stack.
> so, to unhide the mouse, one should call "unsetcursor()" with pops the
> previous mouse pointer from the stack. As VLC also sets the mouse to
> blank/arrow, the stacked way doesn't really work properly, as setCursor()
> may be saving either an arrow or blank.

Err.. actually the problem is with: setOverrideCursor(), with uses stack. The
code to hide the cursor is:
       setCursor(Qt::BlankCursor);
       QApplication::setOverrideCursor();

Calling setOverrideCursor() saves the previous cursor at a stack, so a call to
restoreOverrideCursor() is needed to restore the previous cursor.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to