hi all,
I'd like to use a QSettings variable in all the functions of a class.
I declared inside the header file myapp.h:
Qt Code:
  1. public:
  2. QSettings settings;
To copy to clipboard, switch view to plain text mode 

and in the constructor inside myapp.cpp

Qt Code:
  1. this->settings = QSettings("./settings/settings.ini", QSettings::IniFormat);
To copy to clipboard, switch view to plain text mode 

the compiler returns the error:
qsettings.h:304: error: ‘QSettings& QSettings::operator=(const QSettings&)’ is private

any ideas?
thank you

ilpaso