Results 1 to 2 of 2

Thread: How to diable and NOT hide cursor?

  1. #1
    Join Date
    Dec 2014
    Posts
    82
    Thanks
    10
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default How to diable and NOT hide cursor?

    Hi,

    I'm making a GUI app which interaction with the user is only with keyboard so I need the cursor to be diabled. I've found the next:
    Qt Code:
    1. QApplication::setOverrideCursor(Qt::BlankCursor);
    To copy to clipboard, switch view to plain text mode 

    BUT this only put it like if it were invisble so if you have a mouse connected and move it, the widgets of the widget show the focus and if you click, the cursor go there if its a line edit for example and I don't wnat this. I want that even if there is a mouse, no one can make a thing with it.

    Thank you!

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to diable and NOT hide cursor?

    Global event filter, filtering out all mouse events?

    Cheers,
    _

Similar Threads

  1. Hide blinking cursor from QLineEdit
    By ashtray4241 in forum Qt Programming
    Replies: 7
    Last Post: 11th August 2014, 10:44
  2. Hide cursor of QLineEdit
    By Alundra in forum Qt Programming
    Replies: 7
    Last Post: 3rd June 2014, 14:59
  3. Replies: 2
    Last Post: 2nd October 2009, 15:32
  4. How to Disable or hide cursor from QWidget?
    By ashukla in forum Qt Programming
    Replies: 5
    Last Post: 17th October 2007, 14:42
  5. How to hide mouse cursor
    By kiransu123 in forum Qt Programming
    Replies: 1
    Last Post: 23rd March 2007, 17: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.