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: 100
Registered: ‎10-01-2012
My Device: BB10 Dev Alpha
My Carrier: Roger

How to close a screen?

I have a question about how to close a screen;


I use c++ load qml file to get Screen A. 

After Screen A done it's job. 

I use C++ load qmk file to get Screen B.

this moment, I want close Screen A.


And After Screen B done it's job,

I want to open Screen A again and close Screen B.


I saw some solutions from example:

--- example 1---

c++: page-> deletelater();

--- example 2---

c++: delete page;

--- example 3---

qml: page_id.close();



but the problem is I have to make sure all business passed then I can close A to open B or close B to open A;

Therefore, this has to be done in c++;


I am new in c++, so, anyonw can give me some ideas, please?