Last active
November 1, 2018 02:29
-
-
Save manashmandal/c0adc7547fabf95e4c6d to your computer and use it in GitHub Desktop.
medium post
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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