Hi,
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";
http://stackoverflow.com/questions/3698446/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