PyQt5 – Set icon size of item icon in ComboBox
In this article we will see how we can set the icon size to the item of combo box. By default there is no icon set to the icon in the combo box although we can set icon to each item with the help of
setItemIcon method, sometimes there is a need for adjusting the icon size.
In order to change the icon size of items icon we will use
Syntax : combobox.setIconSize(size)
Argument : It takes QSize object as argument
Action It will set icon size to the item
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