bool value = settings.readBoolEntry("someKey", false);This will return the boolean value associated with the key "someKey". If the key does not exist or the value cannot be converted to a boolean, it will return false. Package library: QSettings is part of the Qt Core library.