Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Posts: 676
Registered: ‎05-06-2012
My Device: Dev Alpha & PlayBook
My Carrier: wifi

Re: QDeclarativeEngine::setObjectOwnership issue

So I made a function which searches for the Sheet and destroys it.


void ApplicationUI::destroySubmitSheet()
	AbstractPane *root = Application::instance()->scene();
	Sheet* submitSheet = root->findChild<Sheet*>("submitSheet");

 It does something but I'm not sure what. The result, when the sheet is pushed for a second time the original sheet pushes on the bottom like before but the close button is completely disabled. It's as if it was half destroyed leaving a sort of zombie sheet.

co-founder of Diaree | BB Dev for PictureThis