QT : QTranslate is not working with QObject subclass

  c++, qobject, qt, qtranslate, qtranslator

QTranslate is working fine with tr and QObject::tr but when I try to create a subclass of QObject its generating the correct ts file but unable to read it back.

class Reporting : public QObject { };

Reporting::tr("I Am Reporting.");

please help Thanks in advance

Source: Windows Questions C++

LEAVE A COMMENT