qsettings Questions
3
Solved
I have problem with loading boolean from ini file in PyQt5 app.
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import sys
from PyQt5 import QtCore
from PyQt5.QtCore import QSettings, QVariant
from Py...
Ginkgo asked 25/11, 2016 at 19:48
6
Solved
I want to save some user credentials in my qt application that runs on Android.
I use QSettings for this like so:
QString appPath = QCoreApplication::applicationDirPath()+QLatin1Char('/');
set = ...
3
I want to use QSettings to save highscores but it doesn't work properly. I'm saving and reading those values in 2 different files.
This is my code responsible for adding values into array:
QSetti...
9
I'm using QSettings to store some data as ini file in Windows.
I want to see the ini file, but I don't know what is the location of the ini file.
This is my code:
QSettings *set = new QSettings(Q...
3
Solved
What i'm trying to do is to check if a registry key (NOT VALUE, KEY) exists in the registry. I can't find any way to check that.
Idea?
4
Solved
There are two possible ways:
load all settings into some struct
load values on-demand
Which approach is better?
2
Solved
I have a problem with enum classes, QVariants and the QSettings class. There are enum class values that I want to store within a QVariant which goes into a QSettings instance. So, my code actually ...
Linguini asked 3/4, 2014 at 14:24
2
Solved
Hello I have created an application using qt and I managed to save some of its settings using QSettings.
void DoneIt::writeSettings()
{
QSettings settings("mycompany", "RightDoneIt");
settings.b...
1
Solved
Saving UI settings with QSettings is cumbersome and buggy, because each time you must use setValue() and value() functions and also define groups, application name and organization which can be bug...
Fancied asked 6/2, 2017 at 4:58
1
Solved
In my .cpp I'm using QSettings.
This worked before, in Qt 4.8:
#include <QSettings>
----------
QSettings settings;
settings.setValue("time_axis_direction", 1);
int test_var = settings.va...
1
Solved
I have a Qt (4.8.5) based application running on OS X 10.9. The app uses QSettings class specifying app name and company. Plist file is created by QSetttings under:
~/Library/Preferences/com.compa...
Electrochemistry asked 2/11, 2013 at 13:37
1
Solved
I need to store instances of a custom class in the registry via QSettings. After reading from Qt's documentation, I think I have implemented the needed functions but I don't manage to save anything...
Meneses asked 9/8, 2013 at 10:11
2
Solved
I want to save an alredy-existing QSettings object into some INI file for backup.
The QSettings comes from the application's global settings, ie. it can be registry, ini file, etc.
In case it h...
1
Solved
I'm using QSettings to store some settings in an INI file. However, my program is not in English, so some of the settings contain Unicode strings. It seems that Qt writes INI files not in utf8 or u...
2
Solved
Im trying to create ini file that will hold me the configuration data, I have singletone class
that setting the QSettings object like this :
... #DEFINE CONFIG_FILE_NAME "myconfig.ini"
m_pSetting...
2
Solved
I upload a file from a location, then the next upload has to point the last uploaded location.
How can I accomplish thus using QSettings?
1
© 2022 - 2024 — McMap. All rights reserved.