PyQt5 – Set skin to unchecked CheckBox when pressed Last Updated : 22 Apr, 2020 Comments Improve Suggest changes Like Article Like Report In this article we will see how we can set skin to the indicator of the check box who is in unchecked state and get pressed. This skin only appear when check box get pressed and its state was unchecked. In order to add skin to the indicator when check box is in unchecked state and get pressed we have to change the style sheet code. Below is the style sheet code. QCheckBox::indicator:unchecked:pressed { border-image : url(image.png); } 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 the check-box checkbox1 = QCheckBox('Geek ?', self) # setting geometry of check box checkbox1.setGeometry(200, 150, 100, 40) # changing style sheet code of check box # adding skin to unchecked indicator when it get pressed checkbox1.setStyleSheet("QCheckBox::indicator:unchecked:pressed" "{" "border-image : url(image.png);" "}") # 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 – Set skin to unchecked CheckBox when pressed R rakshitarora Follow Improve Article Tags : Python Python-PyQt Python-gui Practice Tags : python Similar Reads PyQt5 â Set Skin to unchecked CheckBox when pressed In this article we will see how to set skin to check box when it is already in unchecked state and when it get pressed. By default there is no skin associated to the check box, skin is basically background image that can adjust it self according to the size of check box. In order to do add skin to t 2 min read PyQt5 - Set Skin to unchecked CheckBox when mouse hover In this article we will see how we can set skin to check box who is in unchecked state and mouse hover over it. By default there is no image is associated with the check box, this skin appear only when mouse hover unchecked check box. In order to set skin we have to the style sheet code of check box 2 min read PyQt5 â Set skin to unchecked CheckBox when mouse hover In this article we will see how we can set skin to the indicator of the check box who is in unchecked state and mouse hover over it. This skin only appear when mouse hover over the check box and its state was unchecked. In order to add skin to the indicator when check box is in unchecked state and m 2 min read PyQt5 â Set Skin to unchecked Radio button when pressed In this article we will see how to set skin to the radio button when it get pressed and was in unchecked state. Skin is basically background image which adjust it self according to the size of radio button. This skin will only appear when the radio button get pressed and was already in unchecked sta 2 min read PyQt5 - Setting skin to Checked CheckBox when pressed In this article we will see how we can set skin to the indicator of the check box who is in checked state and get pressed. This skin only appear when check box get pressed and its state was checked. In order to add skin to the indicator when check box is in checked state and get pressed we have to c 2 min read Like