zoukankan      html  css  js  c++  java
  • wmv 播放器

    部分代码如下

    QAction *openFile = new QAction(QIcon(QString(":/Res/open.png")), tr("打开文件"), this);

        connect(openFile, SIGNAL(triggered()), this, SLOT(openFileSource()));
    
    
        QAction *showSet = new QAction(QIcon(QString(":/Res/set.png")), tr("设置"), this);
        connect(showSet, SIGNAL(triggered()), this, SLOT(showSet()));
    
    
        m_labelcount = new QLabel(this);
        m_labelcount->setText("        0:0:0");
    
    
        m_labelTotal = new QLabel(this);
        m_labelTotal->setText("/ 0:0:0");
    
    
        QPalette pl = m_labelcount->palette();
        p.setColor(QPalette::WindowText , Qt::green);
        m_labelTotal->setPalette(pl);
    
    
        connect( mediaObject, SIGNAL(totalTimeChanged(qint64)), this, SLOT(toolTimeSet(qint64)) );
        connect( mediaObject, SIGNAL(tick(qint64)), this, SLOT(tickTimeSet(qint64)) );

    QVBoxLayout *mainLayout = new QVBoxLayout;

        videoWidget->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
        mainLayout->addWidget(videoWidget);
        mainLayout->addWidget(seekSlider);
        mainLayout->addWidget(toolBar);
        mainLayout->addWidget(ui->frame);
        setLayout(mainLayout);
    
    
        ui->frame->hide();
    
    
        videoWidget->setBackgroundRole(QPalette::Dark);
    
    
        setContextMenuPolicy(Qt::CustomContextMenu);
        videoWidget->setContextMenuPolicy(Qt::CustomContextMenu);
        connect(videoWidget, SIGNAL(customContextMenuRequested(const QPoint &)), SLOT(showContextMenu(const QPoint &)));
        connect(this, SIGNAL(customContextMenuRequested(const QPoint &)), SLOT(showContextMenu(const QPoint &)));
    
    
        createContextMenu();
    
    
        this->setWindowTitle(tr("wmv player "));
        resize(1290, 840);

  • 相关阅读:
    数据挖掘-基本流程
    ArcGIS GP应用-GP模型服务发布
    ArcGIS GP应用-GP模型创建-缓冲区分析
    Hadoop2的Yarn和MapReduce2相关
    hadoop学习WordCount+Block+Split+Shuffle+Map+Reduce技术详解
    WordCount示例深度学习MapReduce过程
    数组的几种排序算法的实现
    hBase官方文档以及HBase基础操作封装类
    Hive SQL执行流程分析
    Hive SQL的编译过程
  • 原文地址:https://www.cnblogs.com/xiaowulang/p/10533632.html
Copyright © 2011-2022 走看看