PyQt5 – How to get number of maximum visible items in ComboBox
In this article we will see how we can get the number of 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.
setMaxVisibleItems method is used to set the limit of maximum visible items.
In order to get the maximum visible items number we use
Syntax : combo_box.maaxVisibleItems()
Argument : It takes no argument
Return : It returns integer
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