Results 1 to 3 of 3

Thread: How can I hide the mouse pointer?

  1. #1
    Join Date
    Aug 2008
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question How can I hide the mouse pointer?

    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?

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How can I hide the mouse pointer?

    What if you set setCursor(Qt::BitmapCursor) on the widget ??

    Edit :
    that doesnt work, just tried...
    This works for me -
    setCursor(QPixmap(1,1))
    Last edited by aamer4yu; 22nd August 2008 at 19:17.

  3. #3
    Join Date
    Aug 2008
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How can I hide the mouse pointer?

    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.

Similar Threads

  1. QTextEdit: get word under the mouse pointer?
    By zorro68 in forum Qt Programming
    Replies: 4
    Last Post: 13th November 2009, 16:42
  2. Move Rectangle on mouse Move
    By vermarajeev in forum Qt Programming
    Replies: 24
    Last Post: 14th May 2007, 06:34
  3. How to hide mouse cursor
    By kiransu123 in forum Qt Programming
    Replies: 1
    Last Post: 23rd March 2007, 18:52
  4. Replies: 2
    Last Post: 24th July 2006, 19:36
  5. QStackerWidget and mouse events
    By high_flyer in forum Qt Programming
    Replies: 3
    Last Post: 25th April 2006, 20:25

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.