MyPage *myPage= qobject_cast<MyPage*>(wizard->page(id));Q_ASSERT(myPage);if (myPage) { //тут твой код}