Results 1 to 4 of 4

Thread: Focus handling for the QwtPlot

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2012
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Focus handling for the QwtPlot

    Hi,

    I noticed that I don't receive focus in and out events for the QwtPlot and the keyboard focus is not grabbed properly. To make it work, I have to fix two things:

    - Set setFocusPolicy(Qt::StrongFocus) on all diagrams. -> the diagram grabs the keyboard focus after a mouse click
    - Call setFocus() on the QwtPlot when e.g a mouse click happens -> fixes the focus in/out events

    I hope it helps for others.

    Csaba
    Last edited by kecsap; 18th November 2012 at 17:56.

Similar Threads

  1. Replies: 0
    Last Post: 17th February 2012, 08:41
  2. focus events of widget children
    By daemonna in forum Newbie
    Replies: 1
    Last Post: 25th January 2011, 20:15
  3. Replies: 6
    Last Post: 14th May 2009, 12:02
  4. Focus issues / Setting multiple focus
    By ComputerPhreak in forum Qt Programming
    Replies: 1
    Last Post: 16th February 2007, 06:09
  5. Mouse events without focus
    By latte in forum Qt Programming
    Replies: 1
    Last Post: 6th February 2007, 12:36

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.