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/ _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest