24.04.2012, 16:42, "Sujan Dasmahapatra" <s...@lmwindpower.com>:
> Thanks Diego and Konstantin for your valuable inputs. I am now doing 
> qobject_cast for all of them, please check the code snippet below, now it’s 
> crashing at tabWid step. It’s giving QASSERT failure. The failure is 
> happening in the following file
>
> //qscopedpointer.h at the following line QASSERT(d)
>
>   inline T *operator->() const
>
>     {
>
>         Q_ASSERT(d); //this line it’s crashing.
>
>         return d;
>
>     }

It means that tabWid is QScopedPointer with 0 value. You need to check if 
qobject_cast doesn't return 0 before using pointer.

-- 
Regards,
Konstantin
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to