I am working with a QWorkspace and getting debug messages of QCoreApplication::postEvent: Unexpected null receiver on the console.
I cannot find an entry for "Unexpected null receiver" and am guessing that it has to do with the widget that was added to the workspace no longer being available to accept postEvents.
After preforming the following steps I will receive the postEvent message:
1. workspace->addWindow()
2. call show() on the widget
(At this point if I close the window resize it or manipulate it in any way OTHER then maximizing it I will not receive the message if I were to close the window and restart at step 1)
3. Through the UI call maximize() and then restore (showNormal) to restore the window size and position to its previous state before maximize.
4. close() the window through the UI.
(At this point if you start back at step 1 you will receive the messages as soon as show() is called)
The widget added is a Singleton (same result with new() widgets) and I still have access to it so I am not sure what is causing these messages. It seems to have no bearing on the program as it still functions as designed, but would like to correct whatever is causing this output.
The code is dependent on many other widgets so posting a code sample would take some time to trim it down to a small working example, so figured I would start with the question before investing the time needed to trim it.
Tested on XP OpenSource 4.2.2; Any clarity on the situation or error would be much appreciated.
edit: Will also receive this message twice on final close of the program.
edit2: Only produces the message after a restore from a maximized window. A minimized window then restore will not produce the message.
Bookmarks