Qt:在QtableView上设置边框底部会禁用selection-background-color
Qt : Setting a border bottom on QtableView disables selection-background-color
我现在在我的QtableView样式表中有这样的东西
QTableView::item
{
selection-background-color: rgb(85, 85, 127);
border-bottom: 1px double #8f8f91;
}
现在的问题是selection-background-color: rgb(85, 85, 127);
只有禁用border-bottom: 1px double #8f8f91;
才能生效。有什么建议吗??
如果您想进行自定义,则应该指定任何边界属性。不特定于QSS:
border: 0px solid transparent; // Or any other border
相关文章:
- 斯塔克,堆栈,也可以在底部和顶部添加整数
- 函数,该函数将在堆栈底部保留最小的出现次数
- Win32 c++ 更改透明静态控件中的文本将其置于底部
- 在底部设置运行过程
- QTextEdit中的"selection"和"cursor"有什么区别?
- 无法设置动态数组底部 c++
- 滚动条到底部的QTableWidget
- 如何忽略文件底部的空格
- C++GUI按钮卡在底部
- Lib Caffe (C++): input_blobs()[0] 在第一次调用后会导致底部形状错误
- sqrt 的顶部和底部数字
- 如何检查编辑控件的滚动条是否位于底部
- 如何在不添加换行符的情况下将文本附加到QPlainTextEdit,并保持滚动在底部
- 尝试在 eclipse CDT 中提取函数时"Too many declarations in selection"错误消息
- 如何在 ncurses 中模仿 TTY 行为?当我们到达底部时,向上推动屏幕上的所有线条
- Selection of QTreeWidgetItem
- 我需要了解顶部函数,比我已经知道的更具体.底部函数几乎是不言自明的
- Qt::WindowStaysOnBottom提示和无框标志使不要将我的Qt窗口保留在所有窗口的底部
- 如何在屏幕底部的栏上为Qt诺基亚添加一个按钮
- Qt:在QtableView上设置边框底部会禁用selection-background-color