[Interest] Aligning QProgressBar inside a QSplashScreen
Thiago Macieira
thiago.macieira at intel.com
Thu Oct 4 01:01:42 CEST 2012
On quarta-feira, 3 de outubro de 2012 15.50.30, Alex Malyushytskyy wrote:
> > That's not so good; Q_CHECK_PTR will print "Out of memory" upon seeing a
>
> Q_ASSERT just prints an assert information in debug
Not really.
Q_ASSERT, if it fails, calls qt_assert, which will abort the application with
a core dump (SIGABRT) or, on Windows, call the debugger routines indicating
failure.
Q_ASSERTs are not survivable. If you trip one, the application terminates.
> Q_CHECK_PTR terminates execution if you can't process,
> and this is the case, cause this pointer had to be initialized before
> the function is called.
Q_CHECK_PTR only checks for null. It can't tell an invalid pointer from a
valid one.
> Code can't recover from it. This should not happen, Stop is the best you can
> do.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20121003/f7864d98/attachment.sig>
More information about the Interest
mailing list