PyQt5 - Set skin to checked radio button 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 checked check box, by default there is no image/skin associated with the radio button, this skin will appear when radio button will be in checked state. In order to add skin to the radio button for checked state, we have to change the style sheet of the radio button. Below is the style sheet code. QRadioButton::checked { background-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 a radio button self.radio_button = QRadioButton(self) # setting geometry of radio button self.radio_button.setGeometry(200, 150, 120, 40) # setting text to radio button self.radio_button.setText("Radio Button") # changing style sheet code of radio button # setting skin for checked radio button self.radio_button.setStyleSheet("QRadioButton::checked" "{" "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 checked radio button R rakshitarora Follow Improve Article Tags : Python Python-PyQt Python-gui Practice Tags : python Similar Reads PyQt5 - Set skin to pressed Radio button In this article we will see how to set skin to the pressed radio button. By default there is no image/skin associated with the radio button, this skin will appear to check box only when it get pressed. In order to add skin to pressed radio button we have to change the style sheet code of it, below i 1 min read PyQt5 - Setting skin to Radio Button In this article we will see how to set skin to the radio button. Unlike background image skin adjust it self according to the size of radio button. Below is the representation of radio button with background image vs radio button with skin. In order to do this we have to change the style sheet code 2 min read PyQt5 â How to set Skin to checked Radio button when mouse hover In this article we will see how to set skin to the radio button when mouse hover over it and it was in checked state. Skin is basically background image which adjust it self according to the size of radio button. This skin will only appear when mouse hover over radio button and it was in checked sta 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 indicator of radio button In this article we will see how we can set skin to the indicator of radio button., indicator is the part of the radio button which tells radio button is checked or not. Unlike background image skin adjust itself according to the size of indicator. Below is the representation of background image indi 2 min read PyQt5 - Skin to checked radio button when it get pressed In this article we will see how we can set skin to the radio button when it get pressed and was in checked 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 checked sta 2 min read PyQt5 - Program to check radio button In this article we will see how to set the radio button to checked state. Radio button has two states by default checked and unchecked, in checked state indicator is filled whereas in unchecked state indicator is empty. In order to check the program we will use setChecked method. Syntax : radio_butt 1 min read PyQt5 - How to stop radio button from getting checked In this article we will see how to stop the radio button for getting checked, some times there is a need of blocking a radio button so that user can't check it. In order to stop the radio button from getting checked we have to change the check-able property of radio button and set it to False. Synta 1 min read PyQt5 - Change state of Radio Button In this article we will see how to change the state of radio button. Although with the help of setChecked method we can make the radio button checked but when we use this method on the checked radio button there will be no change in the state of radio button. In order to change the state of radio bu 2 min read PyQt5 - Change the size of radio button In this article we will see how we can change the size of pre-existing radio button when we pressed the push button, we can change the size of radio button with the help of setGeometry method. In order to change the size of radio button when push button is pressed we have to do the following: 1. Cre 2 min read Like