#include#include int main(int argc, char *argv[]) { QCoreApplication app(argc, argv); QSettings settings("MyApp", "MyCompany"); int myInt = settings.readNumEntry("MyIntKey"); return app.exec(); }
#includeBoth of these examples are using the Qt Core library.#include int main(int argc, char *argv[]) { QCoreApplication app(argc, argv); QSettings settings("MyApp", "MyCompany"); double myDouble = settings.readNumEntry("MyDoubleKey"); return app.exec(); }