1

I have a RadioButton in my QML Desktop Application, and when I set it to unchecked, It really becomes unchecked, but I can't see that untill it contains mouse. I tried a lot of ways to resolve it, and didn't find any good one. so I decided to refresh the page, or even just thr RadioButton, in order to set the RadioButton to it's really state, and I hope that after the refreshing the button will be shown as unchecked one. Do you have any idea how to refresh or reload it? Thanks ahead!!

4

1 に答える 1

2

デスクトップ用の QML コンポーネント (または、使用しているラジオ ボタン コンポーネントの種類) のバグに噛まれたようです。それほど驚くことではありませんが、これはまだ本番環境での使用を意図していない未リリースのコードです。

要素を使用して、ラジオ ボタンをアンロードし、その直後に再ロードするように、ラジオ ボタンを更新することができLoaderます。source属性を一時的にクリアするだけです。

于 2012-11-21T19:11:33.860 に答える