12-05-2013 01:32 AM
How do I make a qml page to appear only on the first time the app is launched?
I need to create a tabbed pane and the number of tabs depends n the input of the user which he provides on the first launch. How do I make this happen?
Solved! Go to Solution.
12-05-2013 01:47 AM
You can use QSettings to store settings.
Create two main qmls (mainHasInput.qml and mainHasNoInput.qml). When the user starts your app for the first time, load mainHasNoInput.qml. If the user enters the correct input values, write that into your QSettings. The next time the app launches, you check if a setting was stored into your QSettings. if no, show your mainHasNoInput.qml, if yes, show mainHasInput.qml (which is your 'normal' main screen)
for an example how to use QSettings, see https://developer.blackberry.com/native/sampleapps
12-05-2013 02:22 AM
take a look how I'm showing a Page with EULA only one time:
or here at BlackBerry Developer Blog: http://devblog.blackberry.com/2013/11/secrets-of-t
hope it helps to get the idea