Results 1 to 11 of 11

Thread: EventFilter problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2007
    Location
    Lake Forest, CA, USA
    Posts
    132
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android
    Thanks
    10
    Thanked 27 Times in 22 Posts

    Default Re: EventFilter problem

    Sorry, I've misread your previous message. If I understand correctly, then the problem is that handling Enter key prevents your inputWindow from getting CR/LF inside it. Do you return 'false' from 'eventFilter()'?
    Oleg Shparber

  2. #2
    Join Date
    Nov 2011
    Posts
    8
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    1

    Default Re: EventFilter problem

    Return false if it is the enter key that is pressed? Or otherwise?

  3. #3
    Join Date
    Oct 2007
    Location
    Lake Forest, CA, USA
    Posts
    132
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android
    Thanks
    10
    Thanked 27 Times in 22 Posts

    Default Re: EventFilter problem

    Here's quote from documentation:
    In your reimplementation of this function, if you want to filter the event out, i.e. stop it being handled further, return true; otherwise return false.
    Oleg Shparber

  4. #4
    Join Date
    Nov 2011
    Posts
    8
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    1

    Default Re: EventFilter problem

    Oh boy... I was returning no boolean values... I somehow erased the return true part... now it works... thank's for all the help Oleg and co. Problem solved

Similar Threads

  1. Yet another eventFilter question
    By ls4f in forum Qt Programming
    Replies: 8
    Last Post: 14th September 2011, 14:50
  2. Autorepeat within eventfilter
    By Patrick_Bao in forum Qt Programming
    Replies: 0
    Last Post: 1st December 2010, 08:37
  3. QTreeWidget and eventFilter
    By luoyes in forum Qt Programming
    Replies: 2
    Last Post: 5th November 2009, 07:38
  4. problem in eventFilter of QGraphicsView()
    By wagmare in forum Qt Programming
    Replies: 7
    Last Post: 20th July 2009, 13:28
  5. eventFilter in Console App
    By KaptainKarl in forum Newbie
    Replies: 3
    Last Post: 20th December 2008, 01:27

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.