#include class Test { Q_DECLARE_TR_FUNCTIONS(Test) public: void test() { if (errorLabel != NULL) //: test comment 1 errorLabel->setText(tr("test1")); //: test comment 3 errorLabel->setText(tr("test3")); } };