This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Custom Cursor

Tags: None
(comma "," separated)
mwesterfield
Registered Member
Posts
7
Karma
0

Custom Cursor

Fri Mar 01, 2013 7:10 pm
Hi all,

I am wondering how to create a custom cursor. I see the MarbleWidget::setCursor() call, but it doesn't seem to be working properly. For instance, if I choose to implement my new cursor from a custom right click menu, it will change to the new shape, but will change back as soon as I click or move the mouse.

Thanks in advance,
Matt
ngillotte
Registered Member
Posts
4
Karma
0

Re: Custom Cursor

Tue Mar 05, 2013 4:36 pm
http://qt-project.org/doc/qt-4.8/qwidge ... ursor-prop

This seems like it is describing your problem; does QApplication::setOverrideCursor() do what you are trying to accomplish?
User avatar
Earthwings
KDE Developer
Posts
172
Karma
1
OS

Re: Custom Cursor

Sat Mar 09, 2013 12:59 pm
Another thing you'd have to do is to replace the custom arrow cursor Marble uses. They are in data/bitmaps/cursor_*.png. If you can't change them there directly, you could load a custom .qrc file that contains your custom arrow cursors and place them with "/marble/cursor/*.png" qrc keys to override the ones Marble installs (see line ~220 in src/lib/MarbleWidgetInputHandler.cpp).


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, Sogou [Bot]