Results 1 to 3 of 3

Thread: keyrelease problem in qt

  1. #1
    Join Date
    Dec 2011
    Posts
    13
    Qt products
    Qt3 Qt4 Qt/Embedded Qt Jambi PyQt3 PyQt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Question keyrelease problem in qt

    Hi all,

    from where the event filter is called in qt ???? is it in constructor of application or in key press event or key release event.???

    I had given two separate functions to key press of N and key release of N...

    But when I continuously press N then also release function is called.It means it take key release event but I had not release the key N.

    I also try to give sleep command in between key press and key release But it can not work...

    Regards,
    Kinjal.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: keyrelease problem in qt

    Event filters are installed on which ever QObject you install them on, and called whenever an event destined for that QObject is received.

  3. #3
    Join Date
    Dec 2011
    Posts
    13
    Qt products
    Qt3 Qt4 Qt/Embedded Qt Jambi PyQt3 PyQt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Smile Re: keyrelease problem in qt

    Thanks for reply .....

    It works using

    if(e->isAutorepeat())
    {

    e->ignore();
    }
    in key release function.

Similar Threads

  1. KeyPress and KeyRelease Events
    By sattu in forum Qt Programming
    Replies: 8
    Last Post: 30th September 2011, 18:23
  2. Handle KeyRelease or KeyPress on any row in QTableView
    By AbuYusuf in forum Qt Programming
    Replies: 2
    Last Post: 11th February 2010, 20:04

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.