0
多くの人がこの質問をしています。私はすでにここでそれを検索しました。チェックされたQRadioButtonの色を作成するにはどうすればいいですか?
QRadioButton {
background-color: rgb(252,254,252);
color: black;
}
QRadioButton::indicator {
width: 11px;
height: 11px;
border-radius: 5px;
}
QRadioButton::indicator::unchecked{
border: 1px solid;
border-color: rgb(132,132,132);
border-radius: 5px;
background-color: white;
width: 11px;
height: 11px;
}
QRadioButton::indicator::checked{
border: 3px solid;
border-color: white;
border-radius: 6px;
background-color: rgb(0,116,188);
width: 7px;
height: 7px;
}
しかし、私はこの方法をすれば、結果は(ボタンは内側のみ白ラウンドボーダーとブルーラウンドを持っている)この 次のようになります。最も簡単な解決策の1つは、スタイルシートです。しかし、標準のチェックラジオボタンのように、その外側の黒い枠線を外側にすることはできますか
? (黒いボーダー→白いボーダー→青い丸)。私たちはQtでそれをすることはできますか?
はよく、私はこのソリューションについて考えていませんでした。すごく良かった。ありがとう、投票しました!良い一日を! :) – gnase