daily pastebin goal
28%
SHARE
TWEET

Untitled

a guest Aug 12th, 2017 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Filozofy::Filozofy ( int & argc, char* argv[] ) : QApplication ( argc, argv )
  2. {
  3.     {
  4.         //  translator install
  5.         QTranslator* translator = new QTranslator(this);
  6.         if(translator->load ( ":/tr.qm"))qDebug("Translation Loaded");
  7.         installTranslator ( translator );
  8.     }
  9.     qDebug()<<translate("test","tego"); //retruns translated
  10.     qDebug()<<tr("test"); //return no translated
  11.     mainwindow = new MainWindow();
  12.     mainwindow->show();
  13. }
RAW Paste Data
Top