int main(int argc, char *argv[]) { QApplication a(argc, argv); Ticker w; w.setText(QString(QObject::tr("***人的孤独********!"))); w.show(); return a.exec(); }
int main(int argc, char *argv[]) { QApplication app(argc, argv); Ticker ticker; ticker.setWindowTitle(QObject::tr("Ticker")); ticker.setText(QObject::tr("How long it lasted was impossible to " "say ++ ")); ticker.show(); return app.exec(); }