maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   How to make cursor visible in Maemo5 Qt application (https://talk.maemo.org/showthread.php?t=63619)

slobodsky 2010-10-10 12:59

How to make cursor visible in Maemo5 Qt application
 
I'm developing a small application for N900 using Qt framework and I need to make the "mouse" pointer visible.
Does anybody know how to do it?

bonapart 2010-10-10 13:05

Re: How to make cursor visible in Maemo5 Qt application
 
i guess it can help http://tronche.com/gui/x/xlib/window/XDefineCursor.html

slobodsky 2010-10-10 15:29

Re: How to make cursor visible in Maemo5 Qt application
 
Maybe, but how can I get the Window parameter for a Qt widget?

Updated: Oh, it was a silly mistake: my cursor wasn't visible in the Xephir window because it uses the host's cursor.
Right answer was: On device stock cursors are empty, but any QCursor created from pixmap and set with QApllication::setOverrideCursor() or QWidget::setCursor() methods will be visible.


All times are GMT. The time now is 14:47.

vBulletin® Version 3.8.8