xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

資源簡介

QT開發的flash播放器,播放器與flash媒體文件可以實現交互,通用性較強,適合初學者!

資源截圖

代碼片段和文件信息

#include?“flashplyer.h“
#include?“ui_flashplyer.h“

#include?
#include?
#include?

FlashPlyer::FlashPlyer(QWidget?*parent)?:
????QWidget(parent)
????ui(new?Ui::FlashPlyer)
{
????ui->setupUi(this);
????this->setFocus();???????????????????????????????????//設置當前控件焦點為主窗口
????//1.界面屬性設置,去除邊框、全屏
//????this->setWindowFlags(Qt::framelessWindowHint);????//隱藏邊框
//????this->showFullScreen();???????????????????????????//設置全屏播放

????//2.加載flash界面模塊設置
??????QString?DataName?=?qApp->applicationDirPath();
??????QString?urlOne?=?DataName+“/res/1.swf“;?????????????//播放flash畫面
??????ui->FlashWidget->dynamicCall(“LoadMovie(longstring)“0urlOne);
??????isOver?=?true;

????//3.延時操作
??????timer?=?new?QTimer;
??????connect(timerSIGNAL(timeout())thisSLOT(loadFlash()));
}

FlashPlyer::~FlashPlyer()
{
????delete?ui;
}

void?FlashPlyer::keyPressEvent(QKeyEvent?*event)
{

????if(event->key()?==?Qt::Key_Enter?||?event->key()?==?Qt::Key_Return)
????{
????????qDebug()?<????????ui->fullScreen_btn->setVisible(false);
????????this->setWindowFlags(Qt::framelessWindowHint);??????????????????????????//隱藏邊框
????????this->showFullScreen();?????????????????????????????????????????????????//設置全屏播放
????????ui->FlashWidget->setFocus();????????????????????????????????????????????//設置當前控件焦點為flash播放控件
????????LoadKeyboardLayout((LPCWSTR)QString(“0x0409“).utf16()?KLF_ACTIVATE);???//設置輸入法,“0x0409“為英文輸入美式鍵盤

????????}
?????else?if(event->key()?==?Qt::Key_D)
????{
????????qDebug()?<????????//input?code?to?do?something
????}
????else?if(event->key()?==?Qt::Key_Q)
???{
???????qDebug()?<???????ui->FlashWidget->setFocus();?????????????????????//設置當前控件焦點為flash播放控件
???????LoadKeyboardLayout((LPCWSTR)QString(“0x0409“).utf16()?KLF_ACTIVATE);
???????keybd_event(81000);???????????????????????????//模擬Q鍵輸入,可與flash進行交互,flash響應對應操作
???????//input?code?to?do?something
????}
}

void?FlashPlyer::loadFlash()
{
????if(isOver?==?true)
????{
????????QString?DataName?=?qApp->applicationDirPath();
????????QString?urlTwo?=?DataName+“/res/2.swf“;?????????????//播放flash畫面
????????ui->FlashWidget->dynamicCall(“LoadMovie(longstring)“0urlTwo);
????????isOver?=?false;
????}
????else
????{
????????QString?DataName?=?qApp->applicationDirPath();
????????QString?urlOne?=?DataName+“/res/1.swf“;?????????????//播放flash畫面
????????ui->FlashWidget->dynamicCall(“LoadMovie(longstring)“0urlOne);
????????isOver?=?true;
????}
????timer->stop();
}


void?FlashPlyer::on_FlashWidget_FSCommand(const?QString?&command?const?QString?&args)
{
????qDebug()?<????if?(0?==?strcmp(“f“command.toLatin1()))//結束體驗
????{
????????qDebug()?<????????timer->start(60000);
????????//loadFlash();
????????//input?code?to?do?something
????}
????else?if?(0?==?strcmp(“k“command.toLatin1()))//題目答對
????{
????????qDebug()?<????????//input?code?to?do?something
????}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-01-28?12:42??FlashPlyerV1\
?????文件????????1070??2019-01-26?17:02??FlashPlyerV1\FlashPlyerV1.pro
?????文件??????104132??2019-01-28?12:41??FlashPlyerV1\FlashPlyerV1.pro.user
?????文件????????4036??2019-01-28?12:41??FlashPlyerV1\flashplyer.cpp
?????文件????????1055??2019-01-28?09:08??FlashPlyerV1\flashplyer.h
?????文件????????2919??2019-01-27?11:53??FlashPlyerV1\flashplyer.ui
?????文件?????????183??2019-01-26?16:54??FlashPlyerV1\main.cpp
?????目錄???????????0??2019-01-28?12:44??Release\
?????文件?????????943??2019-01-28?12:31??Release\.qmake.stash
?????文件???????28455??2019-01-28?12:31??Release\Makefile
?????文件???????46355??2019-01-28?12:31??Release\Makefile.Debug
?????文件???????46428??2019-01-28?12:31??Release\Makefile.Release
?????目錄???????????0??2019-01-28?12:44??Release\debug\
?????目錄???????????0??2019-01-28?12:44??Release\release\
?????文件??????277504??2019-01-28?12:41??Release\release\FlashPlyerV1.exe
?????文件???????22116??2019-01-28?12:41??Release\release\flashplyer.o
?????文件????????1476??2019-01-28?12:31??Release\release\main.o
?????文件????????4121??2019-01-28?12:31??Release\release\moc_flashplyer.cpp
?????文件????????8987??2019-01-28?12:31??Release\release\moc_flashplyer.o
?????文件????????9894??2019-01-28?12:31??Release\release\moc_predefs.h
?????目錄???????????0??2019-01-28?12:44??Release\release\res\
?????文件?????9899647??2019-01-22?16:20??Release\release\res\1.swf
?????文件?????9899647??2019-01-22?16:20??Release\release\res\2.swf
?????文件????????3848??2019-01-28?12:31??Release\ui_flashplyer.h

評論

共有 條評論