Results 1 to 2 of 2

Thread: qobject_cast and sender()

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2006
    Posts
    849
    Thanks
    6
    Thanked 163 Times in 151 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: qobject_cast and sender()

    probably: the nature of the deleted() signal is that it is emitted in QObject's destructor. By that time your subclass's destructor ~Species has been executed and the class is no longer a Species but only a QObject. Accessing any members of Species would *not* be correct anymore.

    So the cast does work. Your expectations are not correct.

    HTH

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

    ksrarc (23rd September 2009)

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.