Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qsettings not working on BB10 Q10 device
Forum Update on Monday, May 27th 2025

Qsettings not working on BB10 Q10 device

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 1 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jon Heron
    wrote on last edited by
    #1

    Hello,

    I recently got back into coding for the BB10. I am trying to get an existing application I have working on my Q10 device, everything is working great except for QSettings, its not restoring the settings. The same configuration works on everything else my Qt app works on, including the playbook...
    I set up the Qsettings in main.cpp as per usual.
    Is anybody else having issues with this?
    Here is a small example. "settingsTestBB10":http://www.mediafire.com/download/5uz8oacao2ck547/settingsTest.zip
    Thanks for any help provided!

    Cheers,

    Jon

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jon Heron
      wrote on last edited by
      #2

      It seems Qsettings is broken on bb10.
      If you remove the path info from the set @settings.setPath(QSettings::NativeFormat, QSettings::UserScope, str);@ and the setOrganizationName and domain from main.cpp it only works for one variable at a time. However storing groups is broken, example:
      @ settings.beginGroup("tankVol");
      settings.setValue("ori", ui->cbTankVol->currentIndex());
      settings.setValue("inch", ui->cbInch->currentIndex());
      settings.setValue("height", ui->dblSpinHight->value());
      settings.setValue("dia", ui->dblSpinDiameter->value());
      settings.setValue("circ", ui->cbCirc->currentIndex());
      settings.setValue("length", ui->dblSpinLength->value());
      settings.setValue("cone", ui->dblSpinConeDepth->value());
      settings.setValue("result", ui->lblTankVolume->text());
      settings.endGroup();@
      Only the topmost variable in the list will be stored and the rest get ignored... Making me crazy...
      Cheers,
      Jon

      1 Reply Last reply
      0
      • J Offline
        J Offline
        Jon Heron
        wrote on last edited by
        #3

        I filed a bug:
        "BBUG":https://bugreports.qt-project.org/browse/QTBUG-37173
        Cheers,
        Jon

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved