Пример #1
0
int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

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

    return app.exec();
}
Пример #2
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();
}
Пример #3
0
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();
    }
}