Exemple #1
0
int main(int argc, char **argv)
{
    QApplication app(argc, argv);

    VideoPlayer player;
    player.show();

    return app.exec(); 
}
Exemple #2
0
int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    VideoPlayer player;
    player.resize(320, 240);
    player.show();

    return app.exec();
}
Exemple #3
0
int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    VideoPlayer player;
    player.resize(320, 240);
//    player.show();

    QMediaPlayer *player = new QMediaPlayer;
    player->show();
    return app.exec();
}
void SquareAdded::mouseReleaseEvent( QMouseEvent *event)
{
    if(timer->isActive())
    {
        qDebug() << "Released - Time Remaining: " << timer->remainingTime();
        timer->stop();

        emit clicked();
    }
    else
    {
        group.setLoopCount(0);
        VideoPlayer *player = new VideoPlayer;
        player->resize(500,400);
        player->show();
    }
}
Exemple #5
0
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QTranslator ts;
    if (ts.load(qApp->applicationDirPath() + "/i18n/QtAV_" + QLocale::system().name()))
        a.installTranslator(&ts);
    QTranslator qtts;
    if (qtts.load("qt_" + QLocale::system().name()))
        a.installTranslator(&qtts);

    VideoPlayer w;
    w.show();
    if (a.arguments().size() > 1)
        w.play(a.arguments().last());
    
    return a.exec();
}
Exemple #6
0
int main(int argc, char **argv)
{
    QApplication app(argc, argv);
    app.setApplicationName("GraphicsView Video Player");
    app.setQuitOnLastWindowClosed(true);

    if (!QGLFormat::hasOpenGL() || !QGLFramebufferObject::hasOpenGLFramebufferObjects()) {
    QMessageBox::information(0, "OpenGL framebuffer objects 2",
                 "This system does not support OpenGL/framebuffer objects.");
        return -1;
    }

    VideoPlayer player;
    player.show();

    if (argc == 2) {
        player.openFile(QString(argv[1]));
    }

    return app.exec(); 
}