Hi, I have linked a button to this SLOT;it's a toggled button in a exclusive toolbar button;
If my button is down and if I click again on it, the putton is down again (OK), but start SLOT and it executes "emit (setEdit(0));" I don't want this; my button is down still; sould it executes the first part of 'if'? Thanks

Qt Code:
  1. void MainForm::zoomingIn( bool pressed )
  2. {
  3. if (pressed) {
  4. printf("zoomIN\n");
  5. emit (setEdit(3));
  6. }
  7. else {
  8. emit (setEdit(0));
  9. }
  10. }
To copy to clipboard, switch view to plain text mode