By default, the QComboBox
listview has shadow effect. Is there a way to remove it? Is the shadow controlled from QStyle
or in some other way?
Okay, that might be working for someone who has themes without shadow effects but I have them, so I finally found a simple way to make it work.
self.comboBox.findChild(QFrame).setWindowFlags(Qt.Popup | Qt.NoDropShadowWindowHint)
combobox has one QFrame inside. Its window effect makes the shadow. We can erase that effect with the aforementioned line. Careful, don't put both, otherwise you won't open the popup.
I know it's been a while since this post was made but I haven't found any other solutions.