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:
public:
public:
QSettings settings;
To copy to clipboard, switch view to plain text mode
and in the constructor inside myapp.cpp
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
Bookmarks