Hii friends,

In my QT code am using style sheet for radio button as below

"QRadioButton::indicator:checked {image: url(" + strCheckedRadioButtonImagePath + ");}"\

It works fine and image is loaded but the problem is when i select the radio button a rectangle shaped dotted lines are appearing around radio button.Its the same case even for checkbox

"QCheckBox::indicator:checked {image: url(" + strCheckImagePath + ");width: 13px; height: 13px; border:0px solid #606460; }"\

Can any one help me?

This is almost certainly a visual indication that the checkbox (or radio-button) now has keyboard focus (meaning that the space-bar will toggle the state of the checkbox, or select an unselected radio button -- hitting the tab key to move the focus among widgets should confirm this). If you don't want keyboard control, using setFocusPolicy() on the parent dialog might make the dashed box disappear.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.