QT设置TableView的标题样式
2012-02-21 19:52
447 查看
this->tableView->horizontalHeader()->setStyleSheet("QHeaderView::section {background-color:darkcyan;"
"color: black;padding-left: 4px;border: 1px solid #6c6c6c;}");
this->tableView->verticalHeader()->setStyleSheet("QHeaderView::section {background-color:darkcyan;"
"color: black;padding-left: 4px;border: 1px solid #6c6c6c;}");
以下好看的样式来自于/article/9348996.html
tableView->horizontalHeader()->setStyleSheet
("QHeaderView::section {background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,"
"stop:0 #616161, stop: 0.5 yellow,stop: 0.6 green, stop:1 cyan);"
"color: white;padding-left: 4px;border: 1px solid #6c6c6c;}"
"QHeaderView::section:checked{background-color: red;}"
"QHeaderView::down-arrow {image: url(down_arrow.png);}"
"QHeaderView::up-arrow {image: url(up_arrow.png);}");
"color: black;padding-left: 4px;border: 1px solid #6c6c6c;}");
this->tableView->verticalHeader()->setStyleSheet("QHeaderView::section {background-color:darkcyan;"
"color: black;padding-left: 4px;border: 1px solid #6c6c6c;}");
以下好看的样式来自于/article/9348996.html
tableView->horizontalHeader()->setStyleSheet
("QHeaderView::section {background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,"
"stop:0 #616161, stop: 0.5 yellow,stop: 0.6 green, stop:1 cyan);"
"color: white;padding-left: 4px;border: 1px solid #6c6c6c;}"
"QHeaderView::section:checked{background-color: red;}"
"QHeaderView::down-arrow {image: url(down_arrow.png);}"
"QHeaderView::up-arrow {image: url(up_arrow.png);}");
相关文章推荐
- iOS tableView 设置选中type样式
- qt tableview 根据内容设置行高
- QT TableView 常用设置
- 关于tableView样式为UITableViewStyleGrouped间距的设置
- JavaFX TableView使用和样式设置
- 状态栏,tableView分区样式的设置
- QT TableView 常用设置
- qt QTableView/QTableWidget样式设置
- qt qtableview 样式设置
- Swift中设置tableview的分割线(separator)的样式、颜色、边距
- iOS--tableview的标题头尾设置
- 关于tableView group样式 时设置 cell的width 宽度
- tableview在设置样式为plain时,要让cell显示通栏方法
- iOS中tableView组头部和尾部标题设置
- QT TableView 常用设置
- 表格table样式布局设置
- android 为TextView的部分文字设置超链接样式并监听点击事件
- Qt TableView的简单使用
- TableView Group样式中的控件
- 发现一个设置tableview位置的问题