![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Go to the source code of this file.
Classes | |
struct | Login |
[14] More... | |
Functions | |
settings | setValue ("DataPump/bgcolor", color) |
QSettings | settings ("/home/petra/misc/myapp.ini", QSettings::IniFormat) |
[1] | |
QSettings | settings ("/Users/petra/misc/myapp.plist", QSettings::NativeFormat) |
[2] | |
QSettings | settings ("HKEY_CURRENT_USER\\Software\\Microsoft\\Office", QSettings::NativeFormat) |
[3] | |
settings | setValue ("11.0/Outlook/Security/DontTrustInstalledFiles", 0) |
[4] | |
settings | setValue ("HKEY_CURRENT_USER\\MySoft\\Star Runner\\Galaxy", "Milkyway") |
[5] | |
settings | setValue ("HKEY_CURRENT_USER\\MySoft\\Star Runner\\Galaxy\\Sun", "OurStar") |
settings | value ("HKEY_CURRENT_USER\\MySoft\\Star Runner\\Galaxy\\Default") |
QSettings | settings ("Grenoulle Logique", "Squash") |
[6] | |
QSettings | settings ("Moose Soft", "Facturo-Pro") |
[10] | |
settings | beginGroup ("mainwindow") |
[12] | |
settings | setValue ("size", win->size()) |
settings | setValue ("fullScreen", win->isFullScreen()) |
settings | endGroup () |
settings | beginGroup ("outputpanel") |
settings | setValue ("visible", panel->isVisible()) |
settings | beginGroup ("alpha") |
[13] | |
settings | beginGroup ("beta") |
for (int i=0;i< size;++i) | |
[13] | |
settings | endArray () |
settings | beginWriteArray ("logins") |
settings | setValue ("fridge/color", QColor(Qt::white)) |
settings | setValue ("fridge/size", QSize(32, 96)) |
settings | setValue ("sofa", true) |
settings | setValue ("tv", false) |
settings | beginGroup ("fridge") |
[17] | |
settings | setValue ("interval", 30) |
settings | value ("interval").toInt() |
settings | setValue ("interval", 6.55) |
settings | setValue ("ape") |
settings | setValue ("monkey", 1) |
settings | setValue ("monkey/sea", 2) |
settings | setValue ("monkey/doe", 4) |
settings | remove ("monkey") |
settings | beginGroup ("monkey") |
settings | remove ("") |
settings | setValue ("animal/snake", 58) |
settings | value ("animal/snake", 1024).toInt() |
settings | value ("animal/zebra", 1024).toInt() |
settings | value ("animal/zebra").toInt() |
bool | myReadFunc (QIODevice &device, QSettings::SettingsMap &map) |
[26] | |
bool | myWriteFunc (QIODevice &device, const QSettings::SettingsMap &map) |
[27] | |
bool | readXmlFile (QIODevice &device, QSettings::SettingsMap &map) |
[28] | |
bool | writeXmlFile (QIODevice &device, const QSettings::SettingsMap &map) |
int | main (int argc, char *argv[]) |
[2] | |
Variables | |
QSettings | settings ("MySoft", "Star Runner") |
[0] | |
QColor | color = settings.value("DataPump/bgcolor").value<QColor>() |
pos | |
[7] | |
QList< Login > | logins |
int | size = settings.beginReadArray("logins") |
QStringList | keys = settings.allKeys() |
QStringList | groups = settings.childGroups() |
settings beginGroup | ( | "alpha" | ) |
[13]
[14]
settings beginGroup | ( | "beta" | ) |
settings beginGroup | ( | "fridge" | ) |
[17]
[21]
[19]
[18]
[20]
[22]
settings beginGroup | ( | "mainwindow" | ) |
[12]
[13]
settings beginGroup | ( | "monkey" | ) |
settings beginGroup | ( | "outputpanel" | ) |
settings beginWriteArray | ( | "logins" | ) |
writer endArray | ( | ) |
settings endGroup | ( | ) |
|
new |
int main | ( | int | argc, |
char * | argv[] ) |
[2]
[main_cpp]
[main.cpp body]
The main function for the string list model example.
Create a default directory model and, using the index-based interface to the model and some QLabel widgets, populate the window's layout with the names of objects in the directory.
[0] //! [1]
[1]
[using a custom style]
[QApplication subclass]
[21]
[getter functions]
[0]
[3]
[4]
This creates and populates a model with values from a string list then displays the contents of the model using a QListView widget. [0]
[0] [1]
[printing a custom type]
[printing a custom type] [storing a custom value]
[storing a custom value]
[retrieving a custom value]
[retrieving a custom value]
Definition at line 269 of file src_corelib_io_qsettings.cpp.
bool myReadFunc | ( | QIODevice & | device, |
QSettings::SettingsMap & | map ) |
[26]
[27]
bool myWriteFunc | ( | QIODevice & | device, |
const QSettings::SettingsMap & | map ) |
[27]
[28]
bool readXmlFile | ( | QIODevice & | device, |
QSettings::SettingsMap & | map ) |
[28]
[29]
settings remove | ( | "" | ) |
settings remove | ( | "monkey" | ) |
QSettings settings | ( | "/home/petra/misc/myapp.ini" | , |
QSettings::IniFormat | ) |
[1]
[2]
QSettings settings | ( | "/Users/petra/misc/myapp.plist" | , |
QSettings::NativeFormat | ) |
[2]
[3]
QSettings settings | ( | "Grenoulle Logique" | , |
"Squash" | ) |
[6]
[7]
QSettings settings | ( | "HKEY_CURRENT_USER\\Software\\Microsoft\\Office" | , |
QSettings::NativeFormat | ) |
[3]
[4]
QSettings settings | ( | "Moose Soft" | , |
"Facturo-Pro" | ) |
[10]
[11]
settings setValue | ( | "11.0/Outlook/Security/DontTrustInstalledFiles" | , |
0 | ) |
[4]
[5]
settings setValue | ( | "animal/snake" | , |
58 | ) |
settings setValue | ( | "ape" | ) |
settings setValue | ( | "HKEY_CURRENT_USER\\MySoft\\Star Runner\\Galaxy" | , |
"Milkyway" | ) |
[5]
[6]
settings setValue | ( | "HKEY_CURRENT_USER\\MySoft\\Star Runner\\Galaxy\\Sun" | , |
"OurStar" | ) |
settings setValue | ( | "interval" | , |
30 | ) |
settings setValue | ( | "interval" | , |
6. | 55 ) |
settings setValue | ( | "monkey" | , |
1 | ) |
settings setValue | ( | "monkey/doe" | , |
4 | ) |
settings setValue | ( | "monkey/sea" | , |
2 | ) |
settings setValue | ( | "sofa" | , |
true | ) |
bool writeXmlFile | ( | QIODevice & | device, |
const QSettings::SettingsMap & | map ) |
QColor color = settings.value("DataPump/bgcolor").value<QColor>() |
Definition at line 6 of file src_corelib_io_qsettings.cpp.
groups = settings.childGroups() |
Definition at line 195 of file src_corelib_io_qsettings.cpp.
QStringList keys = settings.allKeys() |
Definition at line 157 of file src_corelib_io_qsettings.cpp.
Definition at line 115 of file src_corelib_io_qsettings.cpp.
pos |
[7]
[8]
Definition at line 57 of file src_corelib_io_qsettings.cpp.
QSettings settings | ( | "MySoft" | , |
"Star Runner" | ) |
[0]
[22]
[20]
[18]
[16]
[10]
[6]
[1]
[2]
[3]
[4]
[7]
[11]
[17]
[19]
[21]
[23]
[24]
[25]
[26]
[12]
Definition at line 79 of file src_corelib_io_qsettings.cpp.
int size = settings.beginReadArray("logins") |
Definition at line 119 of file src_corelib_io_qsettings.cpp.