in myPage1 constructor:
qDebug()<< this->wizard() ; // outputs QObject(0x0)
myWizard *wiz = qobject_cast<myWizard*>( wizard() ); //also tried myWizard *wiz = qobject_cast<myWizard*>((myWizard*) wizard() );
if(wiz) { wiz->my_slot("testing") ; //does not get executed }
in myPage1 constructor:
qDebug()<< this->wizard() ; // outputs QObject(0x0)
myWizard *wiz = qobject_cast<myWizard*>( wizard() ); //also tried myWizard *wiz = qobject_cast<myWizard*>((myWizard*) wizard() );
if(wiz) { wiz->my_slot("testing") ; //does not get executed }
To copy to clipboard, switch view to plain text mode
i set the Page in the myWizard constructor using : addPage( new myPage1( ) );
What am i screwing up?
Bookmarks