title: Get the text of button when click on any one from buttons
body: <p>My application is very simple, I have two buttons, the first button its text <code>+</code>, and the second its text <code>-</code>.<br>
  Then, I want when click on any one of buttons, I receive the text of button that I have clicked.</p>
  
  <p>And the following is the method that called when click on any one of buttons.</p>
  
  <pre><code>void Widget::btns_clicked()
  {
          QPushButton *btn = dynamic_cast&lt;QPushButton*&gt;(sender());
          char _operator = btn-&gt;text();
  
          switch(_operator){
          case '+':
              QMessageBox::information(this, "Status", "You have clicked on (+)");
              break;
          case '-':
              QMessageBox::information(this, "Status", "You have clicked on (-)");
              break;
          }
  }
  </code></pre>
  
  <p>But appear the following error message:<br>
  <code>cannot convert from 'QString' to 'char'</code></p>
  
  <p><strong>Also I have another small inquire</strong><br>
  is there is any other simplest way to do that:
  <code>dynamic_cast&lt;QPushButton*&gt;(sender());</code> ?</p>