[Interest] type casting 5 levels down no error but not proper

Konstantin Tokarev annulen at yandex.ru
Wed Apr 25 11:28:31 CEST 2012


25.04.2012, 13:16, "Sujan Dasmahapatra" <sdh at lmwindpower.com>:
> Is this correct type castting???
>
> MainWindow *mainwinhandle = qobject_cast<MainWindow * >( sheet->parent()->parent()->dataPage()->parent())->statusBar()->showMessage(tr(“A new plot being added”),5000);
>
> It’s crashing…
>

I think we gave you enough pointers, but you're still doing it wrong.

Please read all recommendations once again and don't post your code here until you get it working.

-- 
Regards,
Konstantin



More information about the Interest mailing list