• 大小: 1.85MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-10-12
  • 语言: 其他
  • 标签: qt5  源码  

资源简介

要3分你们觉得多吗? 我心安理得拿好嘛 自己认真做的, 效果图: http://blog.csdn.net/what951006/article/details/51398453 觉得好请下载~

资源截图

代码片段和文件信息

#include “downloadinfodlg.h“
#include “ui_downloadinfodlg.h“
#include
#include 
downloadinfodlg::downloadinfodlg(QWidget *parent) :
    QDialog(parent)
    ui(new Ui::downloadinfodlg)
{
    ui->setupUi(this);
    m_MousePressed=false;
    this->setWindowFlags(Qt::framelessWindowHint|Qt::Tool|Qt::X11BypassWindowManagerHint);
    ui->pushButton_exit->setstyleSheet(“QPushButton{background:transparent;}“
                                       “QPushButton{border-image: url(:image/close24.png);}“
                                       “QPushButton:hover{border-image: url(:image/close24_2.png);}“);

    nowdownlabel=new QLabel(ui->widget);//爹窗口位置
    nowdownlabel->setGeometry(5123020);//设置位置
    nowdownlabel->setstyleSheet(“QLabel{font-size:13px;color: gray;font-family: 微软雅黑;}“);

    tablewid=new QTableWidget(ui->widget);//爹窗口位置
    tablewid->setframeShadow(Qframe::Plain);//设置平的样式
    tablewid->setframeShape(Qframe::Noframe);//设置无边样式
    tablewid->setFocusPolicy(Qt::NoFocus);
    tablewid->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);//水平scrollbar禁用
    tablewid->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);//垂直scrollbar禁用
    tablewid->setShowGrid(false);//隐藏线
    tablewid->verticalHeader()->setVisible(false);//设置不可见
    tablewid->setEditTriggers(QTableWidget::NoEditTriggers);//不可编辑
    tablewid->setSelectionBehavior ( QAbstractItemView::SelectRows); //设置选择行为,以行为单位
    tablewid->setSelectionMode ( QAbstractItemView::SingleSelection);//单选
    tablewid->setstyleSheet(“QTableWidget{color: gray; border: 1px solid gray;}“
                            “QTableWidget{selection-background-color: rgb(256565150);}“
                            “QTableWidget{selection-color: white;}“);


    tablewid->insertColumn(0);
    tablewid->insertColumn(1);
    tablewid->insertColumn(2);

    tablewid->horizontalHeader()->setVisible(false);//不可以看见
    tablewid->verticalHeader()->setVisible(false);//不可以看见

    tablewid->horizontalHeader()->resizeSection(060);
    tablewid->horizontalHeader()->resizeSection(130);
    tablewid->horizontalHeader()->setStretchLastSection(true);//延展最后一下column
    tablewid->insertRow(0);
    tablewid->insertRow(1);
    tablewid->insertRow(2);

    tablewid->setRowHeight(025);
    tablewid->setRowHeight(125);
    tablewid->setRowHeight(225);

    tablewid->setItem(00new QTableWidgetItem(“超高品质“));
    tablewid->setItem(10new QTableWidgetItem(“普高品质“));
    tablewid->setItem(20new QTableWidgetItem(“标准品质“));

    tablewid->setItem(01new QTableWidgetItem(QIcon(“:/image/sq.png“)““));
    tablewid->setItem(11new QTableWidgetItem(QIcon(“:/image/hd.png“)““));
    tablewid->setItem(21new QTableWidgetItem(QIcon(“:/image/sd.png“)““));

    tablewid->setItem(02new QTableWidgetItem(“320kbps/mp3“));
    tablewid->setItem(12new QTableWidgetItem(“192kbps/mp3“));
    tablewid->setItem(22new QTableWidgetItem(“128kbps/mp3“));
    tablewid

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

     文件       4526  2015-05-03 21:30  ExcellentMusicPlayer\downloadinfodlg.cpp

     文件        869  2016-05-03 21:24  ExcellentMusicPlayer\downloadinfodlg.h

     文件       4432  2015-03-27 18:16  ExcellentMusicPlayer\downloadinfodlg.ui

     文件       1080  2015-05-13 09:33  ExcellentMusicPlayer\ExcellentMusicPlayer.pro

     文件      23661  2016-05-13 20:34  ExcellentMusicPlayer\ExcellentMusicPlayer.pro.user

     文件       4304  2015-01-30 08:51  ExcellentMusicPlayer\image\add.png

     文件       9662  2015-04-17 21:43  ExcellentMusicPlayer\image\addskin.ico

     文件       4329  2015-01-30 09:16  ExcellentMusicPlayer\image\add_hover.png

     文件     319408  2015-01-07 16:56  ExcellentMusicPlayer\image\background.png

     文件     243031  2015-04-26 14:25  ExcellentMusicPlayer\image\background2.png

     文件     243816  2014-12-31 12:38  ExcellentMusicPlayer\image\background3.png

     文件     336631  2015-04-26 14:55  ExcellentMusicPlayer\image\background4.png

     文件     343553  2015-04-26 14:55  ExcellentMusicPlayer\image\background5.png

     文件     246505  2015-04-27 10:37  ExcellentMusicPlayer\image\background6.png

     文件       3374  2015-01-30 08:51  ExcellentMusicPlayer\image\checked .png

     文件       2932  2014-12-31 11:33  ExcellentMusicPlayer\image\close24.png

     文件       2888  2014-12-31 11:34  ExcellentMusicPlayer\image\close24_2.png

     文件       3333  2010-01-03 21:33  ExcellentMusicPlayer\image\cursor_drag_hand.png

     文件       3395  2010-01-03 21:33  ExcellentMusicPlayer\image\cursor_hand.png

     文件       1150  2015-01-03 12:45  ExcellentMusicPlayer\image\del.ico

     文件       3141  2010-01-03 21:39  ExcellentMusicPlayer\image\down.png

     文件       1347  2015-03-25 15:08  ExcellentMusicPlayer\image\hd.png

     文件       1332  2015-03-05 01:36  ExcellentMusicPlayer\image\list.png

     文件       4581  2015-01-30 08:51  ExcellentMusicPlayer\image\location.png

     文件       4716  2015-01-30 09:17  ExcellentMusicPlayer\image\location_hover.png

     文件       1484  2015-03-05 01:01  ExcellentMusicPlayer\image\lyric.png

     文件        183  2011-09-04 04:51  ExcellentMusicPlayer\image\MD-brightness.png

     文件        448  2009-09-22 13:43  ExcellentMusicPlayer\image\menu-add.png

     文件        261  2009-10-16 18:37  ExcellentMusicPlayer\image\menu-remove.png

     文件       3035  2015-01-01 01:44  ExcellentMusicPlayer\image\menuback.png

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

评论

共有 条评论