title: Qt tr() not working if i am using in static member
body: <p>Please let me know why it is not working i am new in Qt. here is the code</p>
  
  <pre><code>class Transl
  {
     public:
     static const QString str;
  };
  const QString Transl::str = QObject::tr("Hello world");
  
  int main(int argc, char *argv[])
  {
      QApplication app(argc, argv);
      QTranslator translator;
      translator.load("trans_la");
      app.installTranslator(&amp;translator);
  
      QPushButton hello(Transl::str);
      hello.resize(100, 30);
      hello.show();
      return app.exec();
  }
  </code></pre>
  
  <p>My trans_la.ts file contains this which i generate by lupdate.</p>
  
  <pre><code>&lt;TS version="2.0"&gt;
  &lt;context&gt;
      &lt;name&gt;QObject&lt;/name&gt;
      &lt;message&gt;
          &lt;location filename="main.cpp" line="10"/&gt;
          &lt;source&gt;Hello world&lt;/source&gt;
          &lt;translation&gt;Orbis, te saluto!&lt;/translation&gt;
      &lt;/message&gt;
  &lt;/context&gt;
  &lt;/TS&gt;  
  </code></pre>
  
  <p>Then I do lrelease which generate trans_la.qm. But when i run my executable instead of showing the translated string it shows "Hello world". Please suggest me why it is not working.</p>