Results 1 to 2 of 2

Thread: How to override ShowEvent() etc

  1. #1
    Join Date
    Aug 2009
    Location
    Belgium
    Posts
    310
    Thanks
    10
    Thanked 31 Times in 25 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default How to override ShowEvent() etc

    Hi,

    I have a dialog in which I override the showEvent() and hideEvent() methods.

    Do I have to call the original showEvent() and hideEvent() of QDialog after executing my own code or not ? Everything seems to work without calling them.

    Best regards,
    Marc

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: How to override ShowEvent() etc

    Since QWidget::showEvent() is an empty function there is no need to call it.

    Edit: May this is changed in later versions of Qt, but that is not very likely.

Similar Threads

  1. override operator with qtscript
    By wookoon in forum Qt Programming
    Replies: 1
    Last Post: 20th July 2010, 10:29
  2. Shortcut override ?
    By fenerista in forum Qt Programming
    Replies: 6
    Last Post: 23rd May 2010, 12:02
  3. Implementing WndProc Override
    By bbdaffy in forum Qt Programming
    Replies: 2
    Last Post: 12th March 2010, 20:37
  4. Override a signal
    By daviddoria in forum Newbie
    Replies: 4
    Last Post: 9th February 2010, 18:18
  5. Close Dialog in showEvent
    By pospiech in forum Qt Programming
    Replies: 3
    Last Post: 11th April 2008, 15:32

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.