示例#1
0
文件: main.cpp 项目: elProxy/qtbase
int main(int argc, char **argv)
{
    QApplication app(argc, argv);

    FadeMessage widget;
    widget.setWindowTitle(QT_TRANSLATE_NOOP(QGraphicsView, "Popup Message with Effect"));
    widget.setFixedSize(400, 600);
    widget.show();

    return app.exec();
}
示例#2
0
文件: main.cpp 项目: maxxant/qt
int main(int argc, char **argv)
{
    QApplication app(argc, argv);

    FadeMessage widget;
    widget.setWindowTitle(QT_TRANSLATE_NOOP(QGraphicsView, "Popup Message with Effect"));
#if defined(Q_WS_S60) || defined(Q_WS_MAEMO_5)
    widget.showMaximized();
#else
    widget.setFixedSize(400, 600);
    widget.show();
#endif

    return app.exec();
}