In this article we will see how we can set skin to the line edit part of the combo box when mouse hover over it. Line edit is the part which is used to enter and view the item. Skin is basically background image which adjust itself according to the size of line edit.
Steps to do this : 1. Create a combo box 2. Create a QLineEdit object 3. Set skin to the QlineEdit object when mouse hover over it 4. Add QLineEdit object to the combo box
# creating line edit object
line_edit = QLineEdit()
# setting skin to line edit when mouse hover over it
"border-image : url(skin.png);"
# adding line edit object to combo box
Please Login to comment...