2

I want to know if there is an option for storing a KEY-VALUE pair in persistent storage of a mobile device for Blackberry 10.

If yes, How to use it.

Thanks

Mayank
  • 1,099
  • 4
  • 17
  • 44

3 Answers3

3

Cascades provides the QSettings class.

Richard
  • 8,920
  • 2
  • 18
  • 24
0

View the Starship settings example for how to use this. Starship settings code at github

Ebscer
  • 27
  • 1
  • 7
0

There is QSettings in class and i have provided the methods for reading and writing QSettings

void MainWindow::writeSettings()
 {
     QSettings settings("Moose Soft", "Clipper");

     settings.beginGroup("MainWindow");
     settings.setValue("size", size());
     settings.setValue("pos", pos());
     settings.endGroup();
 }

 void MainWindow::readSettings()
 {
     QSettings settings("Moose Soft", "Clipper");

     settings.beginGroup("MainWindow");
     resize(settings.value("size", QSize(400, 400)).toSize());
     move(settings.value("pos", QPoint(200, 200)).toPoint());
     settings.endGroup();
 }
pranavjayadev
  • 937
  • 7
  • 31