資源簡介
要3分你們覺得多嗎?
我心安理得拿好嘛
自己認(rèn)真做的,
效果圖:
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);//設(shè)置位置
????nowdownlabel->setstyleSheet(“QLabel{font-size:13px;color:?gray;font-family:?微軟雅黑;}“);
????tablewid=new?QTableWidget(ui->widget);//爹窗口位置
????tablewid->setframeShadow(Qframe::Plain);//設(shè)置平的樣式
????tablewid->setframeShape(Qframe::Noframe);//設(shè)置無邊樣式
????tablewid->setFocusPolicy(Qt::NoFocus);
????tablewid->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);//水平scrollbar禁用
????tablewid->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);//垂直scrollbar禁用
????tablewid->setShowGrid(false);//隱藏線
????tablewid->verticalHeader()->setVisible(false);//設(shè)置不可見
????tablewid->setEditTriggers(QTableWidget::NoEditTriggers);//不可編輯
????tablewid->setSelectionBehavior?(?QAbstractItemView::SelectRows);?//設(shè)置選擇行為,以行為單位
????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(“超高品質(zhì)“));
????tablewid->setItem(10new?QTableWidgetItem(“普高品質(zhì)“));
????tablewid->setItem(20new?QTableWidgetItem(“標(biāo)準(zhǔn)品質(zhì)“));
????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??ExcellentMusicPla
?????文件????????869??2016-05-03?21:24??ExcellentMusicPla
?????文件???????4432??2015-03-27?18:16??ExcellentMusicPla
?????文件???????1080??2015-05-13?09:33??ExcellentMusicPla
?????文件??????23661??2016-05-13?20:34??ExcellentMusicPla
?????文件???????4304??2015-01-30?08:51??ExcellentMusicPla
?????文件???????9662??2015-04-17?21:43??ExcellentMusicPla
?????文件???????4329??2015-01-30?09:16??ExcellentMusicPla
?????文件?????319408??2015-01-07?16:56??ExcellentMusicPla
?????文件?????243031??2015-04-26?14:25??ExcellentMusicPla
?????文件?????243816??2014-12-31?12:38??ExcellentMusicPla
?????文件?????336631??2015-04-26?14:55??ExcellentMusicPla
?????文件?????343553??2015-04-26?14:55??ExcellentMusicPla
?????文件?????246505??2015-04-27?10:37??ExcellentMusicPla
?????文件???????3374??2015-01-30?08:51??ExcellentMusicPla
?????文件???????2932??2014-12-31?11:33??ExcellentMusicPla
?????文件???????2888??2014-12-31?11:34??ExcellentMusicPla
?????文件???????3333??2010-01-03?21:33??ExcellentMusicPla
?????文件???????3395??2010-01-03?21:33??ExcellentMusicPla
?????文件???????1150??2015-01-03?12:45??ExcellentMusicPla
?????文件???????3141??2010-01-03?21:39??ExcellentMusicPla
?????文件???????1347??2015-03-25?15:08??ExcellentMusicPla
?????文件???????1332??2015-03-05?01:36??ExcellentMusicPla
?????文件???????4581??2015-01-30?08:51??ExcellentMusicPla
?????文件???????4716??2015-01-30?09:17??ExcellentMusicPla
?????文件???????1484??2015-03-05?01:01??ExcellentMusicPla
?????文件????????183??2011-09-04?04:51??ExcellentMusicPla
?????文件????????448??2009-09-22?13:43??ExcellentMusicPla
?????文件????????261??2009-10-16?18:37??ExcellentMusicPla
?????文件???????3035??2015-01-01?01:44??ExcellentMusicPla
............此處省略71個文件信息
評論
共有 條評論