Results 1 to 4 of 4

Thread: keyPressEvent not being called...

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: keyPressEvent not being called...

    If the dialog doesn't get focus automatically (look out, if there is a default button on the dialog, this button will steal the focus!), you can reimplement showEvent() for the dialog and set focus from within there.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


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

    bruceariggs (10th October 2011)

Similar Threads

  1. keypressevent
    By djwk in forum Newbie
    Replies: 9
    Last Post: 5th July 2010, 03:12
  2. keyPressEvent issue
    By oguzy in forum Qt Programming
    Replies: 1
    Last Post: 7th November 2008, 16:39
  3. keyPressEvent() reimplementation
    By aurelius in forum Newbie
    Replies: 5
    Last Post: 30th October 2008, 17:23
  4. keyPressEvent not being caught
    By vieraci in forum Qt Programming
    Replies: 2
    Last Post: 29th October 2007, 13:53
  5. keypressevent with pyqt4
    By coldlin in forum Qt Programming
    Replies: 3
    Last Post: 3rd October 2007, 17:52

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.