Results 1 to 5 of 5

Thread: Ignoring keyboard events in QwtPlotPicker

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,325
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Ignoring keyboard events in QwtPlotPicker

    Simply change the key code, that is connected to the KeyUp/KeyDown events. 0 would disable the functionality completely ( as it is no valid key code ).

    Qt Code:
    1. mPicker->setKeyPattern( QwtEventPattern::KeyUp, ... );
    2. mPicker->setKeyPattern( QwtEventPattern::KeyDown, ... );
    To copy to clipboard, switch view to plain text mode 
    Check QKeyEvent for the meaning of the key/button combinations you could use to redefine your picker.

    Uwe

  2. The following user says thank you to Uwe for this useful post:

    frankiefrank (23rd January 2012)

Similar Threads

  1. Can I use delegate to catch mouse and keyboard events
    By hubbobubbo in forum Qt Programming
    Replies: 0
    Last Post: 29th April 2010, 12:00
  2. Filtering all mouse/keyboard events
    By maverick_pol in forum Qt Programming
    Replies: 9
    Last Post: 27th November 2008, 17:03
  3. Grab keyboard events in Windows
    By durbrak in forum Qt Programming
    Replies: 1
    Last Post: 4th February 2007, 19:56
  4. Qtoolbutton-ignoring mouse events
    By rvenugopal in forum Qt Programming
    Replies: 2
    Last Post: 26th December 2006, 22:12
  5. handling keyboard events from a console app
    By g.cavallin in forum Qt Programming
    Replies: 1
    Last Post: 18th December 2006, 22:31

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
  •  
Qt is a trademark of The Qt Company.