Results 1 to 4 of 4

Thread: QCoreApplication::postEvent: Unexpected null receiver

  1. #1
    Join Date
    Aug 2010
    Location
    Germany
    Posts
    54
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Angry QCoreApplication::postEvent: Unexpected null receiver

    I have a dialog which contains a tab widget with many further widgets. When I "accept" this dialog I get the "QCoreApplication:ostEvent: Unexpected null receiver" warning. If I a "reject" the dialog I don't get the warning.

    I'm not sure what causes this warning. Worse I don't know where to locate the warning.

    Does somebody have some more information on what exactly may cause this warning?

    Or is there someway to get QT to emit /useful/ information, such as which message is being posted?

  2. #2
    Join Date
    Sep 2010
    Location
    Poland
    Posts
    112
    Thanks
    8
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Maemo/MeeGo

    Default Re: QCoreApplication::postEvent: Unexpected null receiver

    there is this macro
    Q_Assert which can print out some useful debugging information
    but I think you can find Q_ASSERT_X even more useful

    these won't of course solve the problem, but I assume they may be helpful in locating it

    I will not try to explain what the warning means, because docs have this issue explained really weird and I don't understand a thing
    My schedule makes my cry
    My works makes my laugh
    My life makes... oh...no....

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QCoreApplication::postEvent: Unexpected null receiver

    Quote Originally Posted by mortoray View Post
    I have a dialog which contains a tab widget with many further widgets. When I "accept" this dialog I get the "QCoreApplication:ostEvent: Unexpected null receiver" warning. If I a "reject" the dialog I don't get the warning.

    I'm not sure what causes this warning. Worse I don't know where to locate the warning.
    Some code of yours references an object that gets deleted as a result of closing the dialog (like the dialog object itself).
    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.


  4. #4
    Join Date
    Sep 2010
    Location
    Poland
    Posts
    112
    Thanks
    8
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Maemo/MeeGo

    Default Re: QCoreApplication::postEvent: Unexpected null receiver

    @wysota

    documentation stands that events are located on the heap(in the queue), and are deleted from it after being posted
    is this mean, that he tries to access the event which references an object actually already deleted ?
    My schedule makes my cry
    My works makes my laugh
    My life makes... oh...no....

Similar Threads

  1. How can I manage an unexpected program crash?
    By cydside in forum Qt Programming
    Replies: 1
    Last Post: 22nd August 2009, 06:59
  2. QCoreApplication::postEvent();
    By chrisdsimpson in forum Newbie
    Replies: 6
    Last Post: 1st April 2008, 21:23
  3. Receiver
    By Salazaar in forum Newbie
    Replies: 1
    Last Post: 5th May 2007, 19:26
  4. QCoreApplication::postEvent: Unexpected null receiver
    By merlvingian in forum Qt Programming
    Replies: 6
    Last Post: 13th March 2007, 20:25
  5. postEvent() to a non-existing receiver
    By Artschi in forum Qt Programming
    Replies: 7
    Last Post: 1st June 2006, 14:44

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.