欢迎来到天天文库
浏览记录
ID:9378713
大小:67.50 KB
页数:10页
时间:2018-04-29
《代码-音乐播放器设计与实现》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、更多相关参考论文设计文档资源请访问http://www.docin.com/lzj781219头文件:#ifndefQPLAYER_H#defineQPLAYER_H#include#include#include#includenamespaceUi{classQPlayer;}classQPlayer:publicQMainWindow{Q_OBJECTpublic:QPlayer(QWidget*parent=0);~QPlayer();prot
2、ected:voidchangeEvent(QEvent*e);private:Ui::QPlayer*ui;Phonon::SeekSlider*seekSlider;Phonon::MediaObject*mediaObject;Phonon::MediaObject*metaInformationResolver;Phonon::AudioOutput*audioOutput;Phonon::VolumeSlider*volumeSlider;QListsources;QAction*
3、playAction;QAction*pauseAction;QAction*stopAction;QAction*nextAction;QAction*previousAction;QAction*addFilesAction;privateslots:voidon_MuButton_clicked();voidon_RemoveButton_clicked();voidon_pushButton_clicked();voidon_StyleButton_clicked();voidon_PrevButton_clicked();
4、voidon_NextButton_clicked();voidon_PauseButton_clicked();voidon_StopButton_clicked();voidon_PlayButton_clicked();voidon_AddButton_clicked();voidaddFiles();voidnextFile();本参考设计材料,包含项目源代码,屏幕录像指导、项目运行截图、项目设计说明书、任务书、报告书以及文献参考翻译等,完整的设计文件及源代码,资料请联系68661508索要更多相关参考论文设计文档资源请访问
5、http://www.docin.com/lzj781219voidprevFile();voidaboutToFinish();voidfinished();voidtick(qint64);voidrndFile();voidstateChanged(Phonon::StatenewState,Phonon::State);voidmetaStateChanged(Phonon::StatenewState,Phonon::State);voidsourceChanged(constPhonon::MediaSource&sou
6、rce);voidtableClicked(introw,int);voidsetupActions();voidremoveFiles();};#endif//QPLAYER_H主函数#include#include"qplayer.h"#includeintmain(intargc,char*argv[]){QApplicationa(argc,argv);QTextCodec::setCodecForTr(QTextCodec::codecForLocale())
7、;QPlayerw;w.show();returna.exec();}源文件#include"qplayer.h"#include#include"ui_qplayer.h"#include#includeQPlayer::QPlayer(QWidget*parent):QMainWindow(parent),ui(newUi::QPlayer){audioOutput=newPhonon::AudioOutput(Phonon::MusicCategory,this);//初始化系列
8、变量mediaObject=newPhonon::MediaObject(this);metaInformationResolver=newPhonon::MediaObject(this);mediaObject->setTickI
此文档下载收益归作者所有