示例#1
0
文件: main.cpp 项目: CarlosLei/Ticker
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    Ticker w;
    w.setText(QString(QObject::tr("***人的孤独********!")));
    w.show();

    return a.exec();
}
示例#2
0
文件: main.cpp 项目: vukhuyen/Qt
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();
}