[Interest] Aligning QProgressBar inside a QSplashScreen

Jan Kundrát jkt at flaska.net
Wed Oct 3 10:32:25 CEST 2012


On 10/02/12 05:07, Alex Malyushytskyy wrote:
> You would save a lot of time if u properly initialized  this->progress to null

Agreed, that's always a very good idea.

> and used Q_CHECK_PTR in drawContents as below

That's not so good; Q_CHECK_PTR will print "Out of memory" upon seeing a 
null pointer. Q_ASSERT is what has served me well here (and I don't care 
about it being optimized out in release).

With kind regards,
Jan
-- 
Trojita, a fast e-mail client -- http://trojita.flaska.net/



More information about the Interest mailing list