Having a QLineEdit
with a plain vanilla QStringList
QCompleter
. I wonder if I can change the appearance of the dropdown (I want to have either a min. size or smaller scrollbar).
Clarification: I want to set it in a stylesheet, not in the code.
Summary of my findings so far:
- Pretty good summary here: https://forum.qt.io/topic/26703/solved-stylize-using-css-and-editable-qcombobox-s-completions-list-view/12
- I have to use
QStyledItemDelegate
and - give the popup a name for the qss selector
- I have tried that and it does not work for me, but seems to work for others