設定完成QTableView樣式和QHeaderView樣式后隔線不見了
pQHeaderView->setStyleSheet
(
"QHeaderView::down-arrow {subcontrol-position: center right;image:url(:/bk/Resources/headerdowmselected.png);padding-right:8px;}"
"QHeaderView::up-arrow {subcontrol-position: center right;image: url(:/bk/Resources/headerupselected.png);padding-right:8px;}"
"QHeaderView::section{background-color:rgb(255,255,255);border-left:0px;border-right:0px;border-top: 0px;border-bottom:1px solid rgb(223, 223, 223);}"
);
m_pTableView->setStyleSheet("QTableView::section{border-left:0px;border-right:0px;border-top: 1px solid rgb(181, 183, 184);border-bottom:0px solid rgb(181, 183, 184);}");
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/20715.html
標籤:工具平臺和程序庫
上一篇:C++類中的資料成員運算結果在其函式成員間可以傳遞嗎?
下一篇:關于__int128的疑問
