PyQt5 QComboBox - Setting different corners Last Updated : 10 May, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report In this article we will see how we can set different corner to the combo box, combo box widget is not like other widgets it consists of many other widget together, for example, text view, push button, line edit etc. In order to make the combo box circular we have to change the style sheet associated with the combo box, below is the stylesheet code QComboBox { border : 1px solid black; border-top-left-radius : 20px; border-top-right-radius : 2px; border-bottom-left-radius:5px; border-bottom-right-radius : 3px; } Note : It only makes combo box main widget i.e text view part circular it has no effect on the push button. 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, 100, 40) # 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 stylesheet of the combo box self.combo_box.setStyleSheet("QComboBox" "{" "border : 1px solid black;" "border-top-left-radius : 20px;" "border-top-right-radius : 2px;" "border-bottom-left-radius:5px;" "border-bottom-right-radius : 3px;" "}") # 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 QComboBox - Setting different corners 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 QColorDialog - Setting border In this article, we will see how we can set border to the QColorDialog. QColorDialog is the pop up type widget in the PyQt5 used for selecting and creating colors. Color dialog is a huge widget that consists of lots of child widgets so it becomes tough to set stylesheet to the color dialog as it is 2 min read PyQt5 QComboBox - Setting mouse tracking In this article we will see how we can set mouse tracking to the combo box, combo box receive signal about the mouse when any button is pressed but after mouse tracking it will receive all the signals about the mouse even if any button is not pressed. By default this property is False. In order to t 2 min read PyQt5 QComboBox - Change border style In this article we will see how we can change the border style of the combo box, border style can be dotted, dashed etc. When we set border to the combo box it is continuous although we can change it. In order to do this we have to change the style sheet associated with the combo box, below is the s 2 min read PyQt5 QComboBox - Change border style when pressed In this article we will see how we can change the border style of the combo box when it get pressed, border style can be dotted, dashed etc. When we set border to the combo box it is continuous although we can change it. Styled border will be only visible when combobox is pressed else normal border 2 min read PyQt5 QSpinBox - Setting margin In this article we will see how we can set margin to the spin box, by default there is no margin set to the spin box i.e their margin values are zero. Although we can change that, setting margin to the spin box will not display any change in the spin box due to overriding take place by the widget to 2 min read Like