title: How to keep static const variable as a member of a class
body: <p>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.</p>
  
  <p>Some body helped by saying this </p>
  
  <pre><code> QString &lt;ClassName&gt;::ALARM_ERROR_IMAGE = "error.png";
  </code></pre>
  
  <p><a href="https://stackoverflow.com/questions/3698446/initilizing-value-for-a-const-data">Initilizing value for a const data</a></p>
  
  <p>I tried like this </p>
  
  <p>in CPP class i write </p>
  
  <pre><code>static  QString ALARM_WARNING_IMAGE ;
  </code></pre>
  
  <p>In constructor i write </p>
  
  <pre><code>ALARM_WARNING_IMAGE        = "warning.png";
  </code></pre>
  
  <p>But not working... Please help by giving some hints</p>