-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom cursors are not so responsive #182
Comments
Hi, thank you for the feedback. :) I am using Qt Quick items for the cursors currently: slate/app/qml/ui/CanvasContainer.qml Lines 50 to 78 in 7fd4bba
The benefit of this approach is that the cursors can be coloured, which means we can also use the inverse of the colour under the pixel to ensure that the cursor has good visibility due to contrast. Another advantage is that we can have nice, smooth cursors. From memory, a custom QCursor shape will be quite blocky and not smooth, but I'd have to double-check that. The disadvantage is, as you've seen, it can lag behind the mouse a bit due to it not being a system cursor. That's unrelated to signals and slots though, I think. |
When moving crosshair cursor, there is a slight delay compared to standard mouse. I've seen that custom cursor was done with quick items and sending mouse position via signals/slots.
I'm not so familiar with qt quick, but could this be implemented without signal/slots to remove the delay?
The text was updated successfully, but these errors were encountered: