[GH-ISSUE #108] Cursor Changes on Mouse Hover? #64

Closed
opened 2026-05-05 11:03:06 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @mwegner on GitHub (Mar 6, 2019).
Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/108

I'm new to QML, so somewhat embarrassingly I'm not sure if this is a broader QML issue or an issue with the wrapper here. (I have made some small tools with Qt Widgets binding for Go, but that's a completely different ball of wax).

How does one get cursor changes on i.e. button mouse hovers working? The GIF on the example project page doesn't have them, and I haven't been able to make them work on macOS Mojave or Windows. I tried some explicit MouseArea in the .qml, just to make sure that wasn't it.

Thought I'd ask before I go digging further...

Originally created by @mwegner on GitHub (Mar 6, 2019). Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/108 I'm new to QML, so somewhat embarrassingly I'm not sure if this is a broader QML issue or an issue with the wrapper here. (I have made some small tools with Qt Widgets binding for Go, but that's a completely different ball of wax). How does one get cursor changes on i.e. button mouse hovers working? The GIF on the [example project page](https://github.com/qmlnet/qmlnet-examples) doesn't have them, and I haven't been able to make them work on macOS Mojave or Windows. I tried some explicit MouseArea in the .qml, just to make sure that wasn't it. Thought I'd ask before I go digging further...
Author
Owner

@pauldotknopf commented on GitHub (Mar 6, 2019):

Good question. You are expecting a "pointer finger" when hovering over the buttons?

Regardless, you are correct in guessing that this is just a QML question, not specific to this integration.

<!-- gh-comment-id:470188922 --> @pauldotknopf commented on GitHub (Mar 6, 2019): Good question. You are expecting a "pointer finger" when hovering over the buttons? Regardless, you are correct in guessing that this is just a QML question, not specific to this integration.
Author
Owner

@MaxMommersteeg commented on GitHub (Mar 6, 2019):

You mean something like this? https://github.com/MaxMommersteeg/Qml.Net.TodoApp/blob/master/src/TodoApp.FrontEnd/Components/Behaviors/PointingHandCursorOnHover.qml

You should be able to run the app locally.

<!-- gh-comment-id:470189278 --> @MaxMommersteeg commented on GitHub (Mar 6, 2019): You mean something like this? https://github.com/MaxMommersteeg/Qml.Net.TodoApp/blob/master/src/TodoApp.FrontEnd/Components/Behaviors/PointingHandCursorOnHover.qml You should be able to run the app locally.
Author
Owner

@mwegner commented on GitHub (Mar 6, 2019):

You mean something like this?

Perfect, thanks! That's exactly what I was looking for. Tested working in macOS/Windows standalone builds (publish with release target and libraries/binaries brought in).

<!-- gh-comment-id:470191743 --> @mwegner commented on GitHub (Mar 6, 2019): > You mean something like this? Perfect, thanks! That's exactly what I was looking for. Tested working in macOS/Windows standalone builds (publish with release target and libraries/binaries brought in).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/qmlnet#64
No description provided.