Problem with transform of pointer
-
I have parent class and widget, and in class of this widget i write
@ RizekColorManager * rcm;
rcm = qobject_cast<RizekColorManager*>(parent());
if (rcm)
rcm->setWindowTitle("asd");@
There no some mistakes, but there are doesnt work, why?
Advance thanks for your help! -
Are you sure that parent of your widget is RizekColorManager instance?