QListWidget Item 使用样式表编辑视觉问题

问题描述

我的样式表有一个小问题,当我尝试在 QListWidget 中编辑我的项目时,它没有正确显示该项目,并且我看不到编辑的文本。

enter image description here

这是我使用的 QListWidget 样式表:

/*-----QListView-----*/
QListView
{
    background-color: #333333;
    border: 1px solid #3f4548;
    show-decoration-selected: 0;
    outline: 0;
}

QListView::focus
{
    border: 1px solid #8845ff;
}

QListView::item
{
    border: none;
    padding: 10px;
    border-radius: 0px;
}

QListView::item:selected
{
    background-color: rgba(91,255,50%);
    border: 1px solid #8845ff;
    color: #fff;
}

QListView::item:!selected
{
    background-color: transparent;
    color: #b1c6cb;
    border: none;
}

QListView::item:!selected:hover
{
    background-color: #262626;
    border: none;
}

那么你能帮助找出问题吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)