PyQt5 – Setting maximum visible items in ComboBox
In this article we will see how we can set maximum visible items of the combo box. By default at max 10 items are visible at a time in combo box drop down list although we can change this number.
In order to change the maximum visible items number we use
Syntax : combo_box.setMaxVisibleItems(n)
Argument : It takes integer as argument
Action performed : It will set maximum number of visible items
Below is the implementation
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course