ColinDuquesnoy / QDarkStyleSheet

A dark style sheet for QtWidgets application
Other
2.76k stars 725 forks source link

Unexpected indentation for items in combobox #354

Open SHF101202021 opened 1 month ago

SHF101202021 commented 1 month ago

Describe Your Environment

image

Language

Python

Description / Steps to Reproduce [if necessary]

The items in the combobox get extra indentation if using QDarkStyle.

image

I try to use method provided by asch99 in #200 to add QComboBox::item:checked in the style sheet loaded by the QApplication, but it does not work.

QComboBox::item:checked {
  font-weight: bold;
  height: 12px;
}

Could anyone give me some insight to solve this? Thanks in advanced.