Results 1 to 6 of 6

Thread: Is it possible to hide mouse pointer??

  1. #1
    Join Date
    May 2008
    Location
    Spain
    Posts
    92
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Is it possible to hide mouse pointer??

    Hello,

    I found solution for hide cursor:

    Qt Code:
    1. qApp->setOverrideCursor( QCursor( Qt::BlankCursor ) );
    To copy to clipboard, switch view to plain text mode 

    But now I am interesting to hide mouse pointer.
    Is it possible??

    Best reagards.
    John

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Is it possible to hide mouse pointer??

    what is a mouse pointer if its not the same as mouse cursor?
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. The following user says thank you to high_flyer for this useful post:

    webquinty (24th November 2009)

  4. #3
    Join Date
    May 2008
    Location
    Spain
    Posts
    92
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Is it possible to hide mouse pointer??

    Quote Originally Posted by high_flyer View Post
    what is a mouse pointer if its not the same as mouse cursor?
    Hello high_flyer,

    Cursor is botton line in a text box.
    Mouse pointer is blank arrow that move around screen.

    Best regards

  5. #4
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Is it possible to hide mouse pointer??

    Qt Code:
    1. qApp->setOverrideCursor( QCursor( Qt::BlankCursor ) );
    To copy to clipboard, switch view to plain text mode 

    this should hide the mouse 'pointer', the QCursros is for:
    The QCursor class provides a mouse cursor with an arbitrary shape.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  6. The following user says thank you to high_flyer for this useful post:

    webquinty (24th November 2009)

  7. #5
    Join Date
    May 2008
    Location
    Spain
    Posts
    92
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Is it possible to hide mouse pointer??

    Quote Originally Posted by high_flyer View Post
    Qt Code:
    1. qApp->setOverrideCursor( QCursor( Qt::BlankCursor ) );
    To copy to clipboard, switch view to plain text mode 

    this should hide the mouse 'pointer', the QCursros is for:
    Thank you very much.

    But it does not work.

    I am going to check my code again.

    Best regards.

  8. #6
    Join Date
    May 2008
    Location
    Spain
    Posts
    92
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Is it possible to hide mouse pointer??

    Hello,

    I am sorry, but it works fine, but there is a problem.
    When I execute my code, mouse pointer appear in the center of screen and it is visible.
    But If I move mouse, pointer will be hide.

    Then , when app start, using code I will move mouse.

    Thanks a lot.

Similar Threads

  1. Cannot update mouse Pointer position
    By srinirao in forum Newbie
    Replies: 3
    Last Post: 12th November 2009, 10:09
  2. QTreeView: Find nearest item to mouse pointer
    By squidge in forum Qt Programming
    Replies: 3
    Last Post: 31st October 2009, 21:24
  3. free mouse pointer
    By raflegan in forum Qt Programming
    Replies: 1
    Last Post: 1st October 2008, 15:11
  4. How can I hide the mouse pointer?
    By dimaz in forum Qt Programming
    Replies: 2
    Last Post: 22nd August 2008, 20:08
  5. How to hide mouse cursor
    By kiransu123 in forum Qt Programming
    Replies: 1
    Last Post: 23rd March 2007, 18:52

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.