Quote Originally Posted by wysota View Post
Q_ASSERT works only in debug mode. It doesn't provide output, it kills your app with a message that the assertion has failed.


Using three Q_CHECK_PTR calls would be cleaner. An assert with three pointers doesn't tell you which of them were null so from debugging point of view such assertion is rather useless.
Yes, it killed my app that's true. But the doc says: "Prints a warning message containing the source code file name and line number if test is false."
http://qt-project.org/doc/qt-4.8/qtglobal.html#Q_ASSERT
The thing is it killed my app but I could not find that warning message mentioned above... ??? (it did once though with other Q_ASSERT). Where to look for it? Thanks.