PDA

View Full Version : How can I hide the mouse pointer?



dimaz
22nd August 2008, 17:49
I'm writing program for using with touchscreen and I need to hide the mouse pointer, when it is over my window.

May be I can set "Blank" cursor, but I've too much widgets on my form. May be there is some more correct solution?

aamer4yu
22nd August 2008, 18:11
What if you set setCursor(Qt::BitmapCursor) on the widget ??

Edit :
that doesnt work, just tried...
This works for me -
setCursor(QPixmap(1,1)) :)

dimaz
22nd August 2008, 19:08
At the work this don't help me, but now at home I've tested this and all works fine... hmm... may be some bug in designer =/

setCursor(Qt::BlankCursor) works fine.

I'll test it at work some days later and post here. Thanks.