Prevent Firing Signals in Qt

前端 未结 8 964
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-14 14:07

We have a QCheckBox object, when user checks it or removes check we want to call a function so we connect our function to stateChanged ( int state )

8条回答
  •  青春惊慌失措
    2020-12-14 14:45

    When some UI element should not respond to user it is appropriate to disable it. So that user would know that this element is not accepting input.

提交回复
热议问题