GTK4 help: Cannot change mouse cursor. #1981
Unanswered
BishalK007
asked this question in
Q&A
Replies: 4 comments
|
not sure why you want to set the cursor on the surface, maybe try calling widget.set_cursor directly, see https://gtk-rs.org/gtk4-rs/stable/latest/docs/gtk4/prelude/trait.WidgetExt.html#method.set_cursor? |
0 replies
|
Yes I did initially try that - if let Some(cursor) = gtk4::gdk::Cursor::from_name("pointer", None) {
logger::debug!("Setting pointer cursor: {:?}", cursor.name());
left_arrow.set_cursor(Some(&cursor));
}Still I just see the debug statement on build and the cursor doesn't change when I hover on the left_arrow Label. Also for context Im in -
|
0 replies
|
That could possibly be a compositor issue as well. |
0 replies
|
Possibly, but still couldn't find anything. Ill try digging some more. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Well im writing a widget and I wanna have cursor pointer on a CenterBox on hover. my curent code is this-
I can see the debug statements on hover-enter and hover-leave. but my cursor does not chnage.
what exactly am I doing wrong?
saw #1325
and tried -
same behaviour as previous.
Anyone knows what I'm doing wrong?
Full code for anyone looking-
All reactions