微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

如何解决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 举报,一经查实,本站将立刻删除。