PyQt5 ComboBox – Setting border style to down arrow Last Updated : 17 May, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report In this article we will see how we can set border style to the down arrow, basically when we set border to the down arrow it is of plain simple border although we can change its style. In order to do so we have to change the style sheet associated with the combo box below is the stylesheet code QComboBox::down-arrow { border : 4px black; border-style : dotted; } Below is the implementation Python3 1== # importing libraries from PyQt5.QtWidgets import * from PyQt5 import QtCore, QtGui from PyQt5.QtGui import * from PyQt5.QtCore import * import sys class Window(QMainWindow): def __init__(self): super().__init__() # setting title self.setWindowTitle("Python ") # setting geometry self.setGeometry(100, 100, 600, 400) # calling method self.UiComponents() # showing all the widgets self.show() # method for widgets def UiComponents(self): # creating a check-able combo box object self.combo_box = QComboBox(self) # setting geometry of combo box self.combo_box.setGeometry(200, 150, 150, 80) # geek list geek_list = ["Sayian", "Super Sayian", "Super Sayian 2", "Super Sayian B"] # adding list of items to combo box self.combo_box.addItems(geek_list) # setting style sheet # adding border to down arrow # setting border style to it self.combo_box.setStyleSheet("QComboBox::down-arrow" "{" "border : 2px black;" "border-style : dotted;" "}") # create pyqt5 app App = QApplication(sys.argv) # create the instance of our Window window = Window() # start the app sys.exit(App.exec()) Output : Comment More infoAdvertise with us Next Article PyQt5 ComboBox – Setting border style to down arrow R rakshitarora Follow Improve Article Tags : Python Python-PyQt Python-gui Python PyQt5-ComboBox Python PyQt5-ComboBox-stylesheet +1 More Practice Tags : python Similar Reads PyQt5 ComboBox â Setting border style to down arrow when pressed In this article we will see how we can set border style to the down arrow when it get pressed. Basically, when we set border to the down arrow it is of plain simple border although we can change its style. In order to do so we have to change the style sheet associated with the combo box below is the 2 min read PyQt5 - Set skin to the down-arrow of combobox In this article we will see how we can set skin to the down-arrow of the combo box. Down arrow is the push button part of the combo box which when pressed open the list view. Below is the representation of how skin to the drop arrow looks like. In order to do so we have to change the style sheet cod 2 min read PyQt5 ComboBox â Different border size to down arrow In this article we will see how we can set different size/width borders to the down arrow, basically, when we set border to the down arrow it is of same width for all sides although we can change its color. In order to do so we have to change the style sheet associated with the combobox, below is th 2 min read PyQt5 - Add border to editable on state ComboBox In this article we will see how we can add border to the editable combo box when it is in on state. ON state is basically when the combo box list view is open. This customized border appear only when combo box will be in on state and is editable. Editable combo box can be created with the help of se 2 min read PyQt5 - Setting background color to the ComboBox In this article we will see how we can set the background color to the combo box. By default combo box is of grey color although we can change its color. Below is the representation of normal combo box and colorful combo box. In order to do this we have to change the style sheet code of the combo bo 2 min read Like