QssStylesheetEditor
QssStylesheetEditor copied to clipboard
What is the setMaxVisibleItems qss code of combox?
I try to use qss to set the number of items displayed by combox, but there is no corresponding code. There is no corresponding prompt when using your tool.
box.setMaxVisibleItems(5) #method for combobox to set the max visible items,it should be invoked in python code.
box.setStyleSheet("QComboBox{combobox-popup:0;}") #the code in " " could be added to qss file
hoping this helps