[Interest] Mouse cursor always resetted on mouse move

Frederik Gladhorn frederik.gladhorn at digia.com
Tue Jan 21 16:40:46 CET 2014


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

Greetings,
Frederik

> 
> Thanks,
> Conny
> 
> 
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest




More information about the Interest mailing list