Results 1 to 5 of 5

Thread: Custom QApplication and keypress

Hybrid View

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

    Default Re: Custom QApplication and keypress

    You don't have to implement the event filter in any widget, a normal QObject subclass will do.
    You then install an instance of that class on the QApplication instance as its event filter.

    Cheers,
    _

  2. #2
    Join Date
    Mar 2011
    Posts
    120
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanked 1 Time in 1 Post

    Default Re: Custom QApplication and keypress

    Thanks.....

    It is working fine.

    QApplication::installEventFilter(QObject*) did the work for me.

Similar Threads

  1. Custom Qt "modules" from within a main QApplication
    By alitoh in forum Qt Programming
    Replies: 2
    Last Post: 27th July 2012, 15:00
  2. QListWidget keypress capture ?
    By tonnot in forum Qt Programming
    Replies: 5
    Last Post: 29th September 2011, 21:07
  3. Replies: 2
    Last Post: 1st August 2011, 07:30
  4. fn+f1 keypress detect
    By oguzy in forum Qt Programming
    Replies: 1
    Last Post: 16th November 2008, 17:21
  5. keypress event
    By vishesh in forum Qt Programming
    Replies: 2
    Last Post: 3rd November 2007, 15:12

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.