In this article we will see how we can set skin to the indicator of radio button when mouse hover over it and was in unchecked state. By default no skin or image associated with it although we can set skin to it. The skin only appear to the indicator when it was in unchecked state and when mouse hover over the radio button.
In order to add skin to indicator of radio button we have to change the style sheet code of it. Below is the style sheet code.
QRadioButton::indicator:unchecked:hover border-image : url(image.png); }
Below is the implementation
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.