Skip to content

Instantly share code, notes, and snippets.

@manashmandal
Last active November 1, 2018 02:29
Show Gist options
  • Save manashmandal/c0adc7547fabf95e4c6d to your computer and use it in GitHub Desktop.
Save manashmandal/c0adc7547fabf95e4c6d to your computer and use it in GitHub Desktop.
medium post
#ifndef QSETTINGSEXAMPLE_H
#define QSETTINGSEXAMPLE_H
#include <QDialog>
#include <QString>
#include <QSettings>
#include <QLineEdit>
#include <QPushButton>
namespace Ui {
class QSettingsExample;
}
class QSettingsExample : public QDialog
{
Q_OBJECT
public:
explicit QSettingsExample(QWidget *parent = 0);
~QSettingsExample();
private:
Ui::QSettingsExample *ui;
};
void saveSettings(const QString &key, const QVariant &value, const QString &group);
QVariant loadSettings(const QString &key, const QVariant &defaultValue, const QString &group);
#endif // QSETTINGSEXAMPLE_H
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment