查看完整版本: [-- qtableview样式问题 --]

QTCN开发网 -> Qt基础编程 -> qtableview样式问题 [打印本页] 登录 -> 注册 -> 回复主题 -> 发表主题

hfutzhu 2019-08-06 14:39

qtableview样式问题

QTableView 我设置了qss:如下:QTableView {color: white;gridline-color: white;background-color: rgb(108, 108, 108);alternate-background-color: rgb(64, 64, 64);selection-color: white;selection-background-color: rgb(0, 187, 0);border: 0px groove gray;border-radius: 0px;/*padding: 2px 4px;*/}QHeaderView {color: white;font: bold 10pt;background-color: rgb(108, 108, 108);border: 1px solid rgb(144, 144, 144);border-left-color: rgba(255, 255, 255, 0);border-top-color: rgba(255, 255, 255, 0);min-height:29px;}QHeaderView::section {color: white;background-color: rgb(64, 64, 64);border-left: 1px solid #f6f7fa;border-radius:0px;border-color: #f6f7fa;}
但是表头的分割线和内容的分割线对不齐,请教各位大神!!!!


查看完整版本: [-- qtableview样式问题 --] [-- top --]



Powered by phpwind v8.7 Code ©2003-2011 phpwind
Gzip disabled