-
-
Save frueter/c36916f8e0901b332a88cbd71ff91c5d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from PySide2 import QtWidgets | |
args = sys.argv | |
app = QtWidgets.QApplication(args) | |
w = QtWidgets.QComboBox() | |
for i in range(10): | |
w.addItem(str(i)) | |
style_content = "QWidget:item:selected{background-color: red;}" | |
w.setStyleSheet(style_content) | |
w.show() | |
sys.exit(app.exec_()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
why does the stytlesheet entry create an indented combobox item with tick mark on hover?