Results 1 to 3 of 3

Thread: keyPressEvent public or should it be protected

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    518
    Thanks
    13
    Thanked 77 Times in 75 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: keyPressEvent public or should it be protected

    Hi, you could send the event through the event system using QCoreApplication:ostEvent() or QCoreApplication::sendEvent(). That way the keyPressEvent() can stay protected.

    Ginsengelf

  2. #2
    Join Date
    Jun 2011
    Posts
    23
    Thanks
    2
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: keyPressEvent public or should it be protected

    Thank you sendEvent worked

Similar Threads

  1. Replies: 3
    Last Post: 11th February 2018, 18:00
  2. Play WMA DRM (protected wma files)
    By walidos in forum Qt Programming
    Replies: 1
    Last Post: 11th February 2012, 18:01
  3. protected QGraphicsObject
    By stefan in forum Qt Programming
    Replies: 6
    Last Post: 19th August 2011, 17:04
  4. Virtual protected and private var
    By maddog_fr in forum Qt Programming
    Replies: 4
    Last Post: 19th November 2010, 16:14
  5. About Password Protected Files:
    By vermarajeev in forum Qt Programming
    Replies: 7
    Last Post: 16th February 2007, 14:46

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.