Registered Member
|
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 |
Registered Member
|
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? |
KDE Developer
|
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).
|
Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, Sogou [Bot]