[Interest] Mouse cursor always resetted on mouse move

Cornelius Hald hald at icandy.de
Wed Jan 22 14:45:37 CET 2014


On Tue, 2014-01-21 at 16:40 +0100, Frederik Gladhorn wrote:
> Tirsdag 21. januar 2014 15.41.40 skrev Cornelius Hald:
> > Hi,
> > 
> > I'm trying to set an application wide cursor for some time and later
> > return to the default cursor.
> > 
> > I've tried QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
> > 
> > and
> > 
> > ApplicationWindow {
> >     [...]
> >     MouseArea {
> >         cursorShape: Qt.WaitCursor
> >         acceptedButtons: Qt.NoButton
> >         anchors.fill: parent
> >     }
> > }
> > 
> > In both cases I see the WaitCursor until I move the mouse. Once moved,
> > the cursor returns to the default cursor and stays like that.
> > 
> > I'm running Qt 5.2 on Linux/X11 with Qt Quick Controls.
> > 
> > Maybe it needs to be done differently using Qt Quick Controls?
> 
> As long as the mouse is inside the MouseArea this should give you the wait 
> cursor.
> 
> Please file a bug: https://bugreports.qt-project.org

Thanks for the input. I've looked into it in more detail and it turns
out it only happens if I'm using a WebView. Probably because the WebView
has its own cursor handling.

The thing is, I need to hide the cursor if my application is running in
full screen. A bit like a media player but with HTML content...

I guess I still file it as bug, but if anyone knows about a workaround
it would be really great.

Thanks,
Conny







More information about the Interest mailing list