b2科目四模拟试题多少题驾考考爆了怎么补救
b2科目四模拟试题多少题 驾考考爆了怎么补救

mplayer如何旋转播放器_mplayer播放器手机版_mplayer播放器(7)

电脑杂谈  发布时间:2017-02-27 21:07:49  来源:网络整理

Main.cpp

  1. #include <QApplication> 
  2. #include "mplayer.h"  
  3. int main(int argc, char **argv)  
  4. {  
  5. QApplication app(argc, argv);  
  6. MPlayer player;   //实例最终的MPlayer类  
  7. player.show();     //显示界面  
  8. return app.exec(); //运行程序  
  9. }  
  10. mplayer.h  
  11. #ifndef _MPLAYER_H  
  12. #define _MPLAYER_H  
  13. #include <QIcon> 
  14. #include <QProcess> 
  15. #include <QTimer> 
  16. #include <QStringList> 
  17. #include <QDir> 
  18. #include <QTime> 
  19. #include <QString> 
  20. #include "ui_mplayer.h"  
  21. class MPlayer:public QDialog,private Ui_Dialog  
  22. {  
  23. Q_OECT  
  24. public:  
  25. MPlayer(QWidget *parent = 0);  
  26. public:  
  27. QTime int_to_time(int);  
  28. public slots:              
  29. void play_pause_slots(); //暂停  
  30. void stop_slots();      //停止  
  31. void previous_slots();   //上一曲  
  32. void next_slots();       //下一曲  
  33. void seek_slots(int);  
  34. void get_time_slots();        //得到播放时间  
  35. void set_volume_slots(int);    //设置音量  
  36. void set_sound_slots();       //静音  
  37. void playerReward_slots();    //快退  
  38. void playerForward_slots();    //快进  
  39. void back_message_slots();    //更新显示信息  
  40. private:  
  41. QProcess *process;  
  42. QStringList files;  
  43. QDir directory;  
  44. int file_count;  
  45. QString file_name;  
  46. bool isPlay;  
  47. bool isSound;  
  48. bool isStop;  
  49. QTimer *timer;  
  50. int file_length;  
  51. int curr_time;  
  52. };  
  53. #endif 


本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/bofangqi/article-34872-7.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    热点图片
    拼命载入中...