Results 1 to 4 of 4

Thread: Inheritance problem {SOLVED}

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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: Inheritance problem {SOLVED}

    At the time of construction of the base class, the derived class is not yet created thus the virtual method table is not overwritten with methods redefined in the derived class thus calling virtual methods from the constructor of the base class cannot access any code from the derived class. Trying to do that results in the code from the base class being invoked and is considered a programming error as far as the standards go.
    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:

    KillGabio (24th July 2013)

Similar Threads

  1. Problem of inheritance
    By giorgik in forum Qt Programming
    Replies: 9
    Last Post: 22nd February 2013, 22:50
  2. problem with Inheritance and QTreeView
    By Kicer in forum Qt Programming
    Replies: 0
    Last Post: 3rd May 2010, 16:10
  3. Inheritance problem
    By brevleq in forum Qt Programming
    Replies: 6
    Last Post: 23rd December 2008, 07:27
  4. problem in widget inheritance
    By wagmare in forum Qt Programming
    Replies: 2
    Last Post: 10th December 2008, 08:35
  5. subclassing/inheritance QObject problem
    By cbeall1 in forum Qt Programming
    Replies: 12
    Last Post: 13th February 2006, 18:49

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.