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 = ...
Cleaner asked 14/10, 2013 at 20:2

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...
Executant asked 27/4, 2013 at 10:29

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...
Syphilology asked 27/10, 2010 at 9:47

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?
Slowpoke asked 13/12, 2011 at 5:11

4

Solved

There are two possible ways: load all settings into some struct load values on-demand Which approach is better?
Overpay asked 16/1, 2013 at 18:56

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...
Evin asked 17/11, 2010 at 4:27

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...
Garin asked 28/9, 2015 at 12:18

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...
Glynisglynn asked 19/1, 2012 at 17:51

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...
Seaside asked 8/11, 2011 at 7:45

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...
Apparently asked 3/4, 2011 at 11:18

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?
Commendation asked 30/8, 2010 at 4:35
1

© 2022 - 2024 — McMap. All rights reserved.