I want to keep a static const variable as a member of class.
Is it possible to keep and how can i initilize that variable.
Some body helped by saying this
QString <ClassName>::ALARM_ERROR_IMAGE = "error.png";
Initilizing value for a const data
I tried like this
in CPP class i write
static QString ALARM_WARNING_IMAGE ;
In constructor i write
ALARM_WARNING_IMAGE = "warning.png";
But not working… Please help by giving some hints
Here is the basic idea: