Reputation: 227
I tried almost everything (Adjusting heights, removing paddings) but can't get this black bar get removed from combobox.
Stylesheet I am currently using
QComboBox {
border: 2px solid #AD86FF;
border-radius: 5px;
padding: 10px;
min-width: 200px;
min-height: 30px;
font-size: 16px;
color: #333;
background-color: #fff;
margin: 0px;
}
QComboBox::drop-down {
subcontrol-position: center right;
border-left-width: 1px;
border-left-color: #AD86FF;
border-left-style: solid;
background-color: #fff;
padding: 6px;
margin: 0px;
border-radius: 0px;
}
QComboBox::drop-down::indicator {
image: url(./assets/dropdown.png);
width: 16px;
height: 16px;
background: transparent;
}
QComboBox QAbstractItemView {
border: 2px solid #AD86FF;
border-radius: 5px;
selection-background-color: #8F6ED4;
selection-color: white;
background-color: #fff;
alternate-background-color: #f0f0f0;
font-size: 16px;
color: #333;
padding: 0px;
margin: 0px;
spacing: 0px;
}
QComboBox::item {
height: 30px;
padding-left: 10px;
padding-right: 10px;
}
QComboBox::item:selected {
background-color: #8F6ED4;
color: white;
}
QComboBox::item:hover {
background-color: #e0e0e0;
}
I am thinking this issue is not from qt itself but from my window manager, gnome (wayland). Your thoughts? How I can fix something weird as is.
I tried out different padding, heights, margins (even resetting all custom style). The black bar still appears.
Upvotes: 0
Views: 76