title: How to enable the disabled button
body: <p>I have a toolbutton which I want to disable when clicking on it (if it is enabled) and enable it when clicking on it (and it is disabled). The problem is that when clicking on it, I wrote the corresponding slot and it is disabling the button. So far it is working. But once disabled and you click on it, it does not jump to the slot, it is completely disabled forever. Am I using the wrong function or the wrong signal?</p>
  
  <pre><code>...
  bool mEnable = true;
  
  void Test::OnEnableButtonTriggered() {
    mEnable = !mEnable;
    ui.OnEnable-&gt;setEnabled(mEnable);
  }
  </code></pre>