• 大小: 1.13MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-11-12
  • 语言: 其他
  • 标签: QT  QMediaPlayer  

资源简介

该工程为QT 简易音乐播放器,实现音乐添加、播放、暂停、下一首等等功能。实现简单的播放功能

资源截图

代码片段和文件信息

#include “dialog.h“
#include “ui_dialog.h“
#include 
#include 
#include 
#include 
#include 
Dialog::Dialog(QWidget *parent) :
    QDialog(parent)
    ui(new Ui::Dialog)
{
    ui->setupUi(this);
    ui->listWidget->verticalScrollBar()->setCursor(Qt::PointingHandCursor);
    QString listWidgetstyle = “QScrollBar:vertical“
                                  “{“
                                          “width:8px;“
                                          “background-color:transparent;“
                                          “margin:0px0px0px0px;“
                                         “ padding-top:12px;   /*上预留位置*/“
                                         “ padding-bottom:12px;    /*下预留位置*/“
                                      “}“


                                    “  QScrollBar::handle:vertical“
                                     “ {“
                                          “width:8px;“
                                         “ background-color:rgba(2552552550.2);“
                                         “ border-radius:4px;“
                                         “ min-height:20px;“
                                     “ }“


                                  “    QScrollBar::handle:vertical:hover“
                                   “   {“
                                    “      width:9px;“
                                         “ background-color:rgba(2552552550.5);“
                                       “   border-radius:4px;“
                                     “     min-height:20;“
                                    “  }“

                                    “  QScrollBar::add-line:vertical“
                                    “  {“
                                         “ height:12px;“
                                     “     width:10px;“
                                  “        border-image:url(:/selectfile/scroll/3.png);“
                                         “ subcontrol-position:bottom;“
                                  “    }“

                                  “    QScrollBar::sub-line:vertical“
                                  “    {“
                                  “        height:12px;“
                                          “width:10px;“
                                       “   border-image:url(:/selectfile/scroll/1.png);“
                                          “subcontrol-position:top;“
                                   “   }“
                                  “    QScrollBar::add-line:vertical:hover“
                                   “   {“
                                         “ height:12px;“
                                          “width:10px;“
                                         “ border-image:url(:/selectfile/scroll/4.png);“
                                          “subcontrol-position:bottom;“
                                     “ }“


 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       9662  2019-10-08 10:52  musicApp\APP.ico

     文件         58  2019-10-08 10:54  musicApp\app.rc

     文件      10672  2019-10-08 11:23  musicApp\dialog.cpp

     文件       1019  2019-10-08 10:38  musicApp\dialog.h

     文件       7723  2019-10-08 11:15  musicApp\dialog.ui

     文件        359  2019-07-26 09:08  musicApp\image\music.png

     文件      15198  2019-07-26 09:08  musicApp\image\next.png

     文件        336  2019-07-26 09:08  musicApp\image\pase.png

     文件        256  2019-07-26 09:08  musicApp\image\play.png

     文件        340  2019-07-26 09:08  musicApp\image\pre.png

     文件        521  2019-07-26 09:08  musicApp\image\right.png

     文件        256  2019-07-26 09:08  musicApp\image\播放.png

     文件      15153  2019-07-26 09:08  musicApp\image-hover\music-hover.png

     文件      15204  2019-07-26 09:08  musicApp\image-hover\music-voice-hover.png

     文件      15431  2019-07-26 09:08  musicApp\image-hover\next-hover.png

     文件      14967  2019-07-26 09:08  musicApp\image-hover\pase-hover.png

     文件      14941  2019-07-26 09:08  musicApp\image-hover\play-hover.png

     文件      14951  2019-07-26 09:08  musicApp\image-hover\pre-hover.png

     文件        876  2019-10-08 10:35  musicApp\img.qrc

     文件        278  2019-10-08 10:12  musicApp\main.cpp

     文件        472  2019-10-08 10:55  musicApp\musicApp.pro

     文件      23827  2019-10-08 11:23  musicApp\musicApp.pro.user

     文件     219350  2019-07-26 09:08  musicApp\pifu\bg1.jpg

     文件      45493  2019-07-26 09:08  musicApp\pifu\bg2.jpg

     文件     254872  2019-07-26 09:08  musicApp\pifu\bg3.jpg

     文件     158242  2019-07-26 09:08  musicApp\pifu\bg4.jpg

     文件      61523  2019-07-26 09:08  musicApp\pifu\bg5.jpg

     文件      57458  2019-07-26 09:08  musicApp\pifu\bg6.jpg

     文件     407396  2019-07-26 09:08  musicApp\pifu\bg7.jpg

     文件      44196  2019-07-26 09:08  musicApp\pifu\bg8.jpg

............此处省略14个文件信息

评论

共有 条评论