I'v tried to use if(rado2->isChecked()) but programm crashes.
Where did you try to use it?
Your code is legal, but very cumbersome, and would not be applicable for any real world application.
Make your self familiar with loops, array/containers.
For example, instead of:
Qt Code:
  1. btn1= new QPushButton;
  2. btn2= new QPushButton;
  3. btn3= new QPushButton;
  4. btn4= new QPushButton;
  5. btn5= new QPushButton;
  6. btn6= new QPushButton;
  7. btn7= new QPushButton;
  8. btn8= new QPushButton;
  9. btn9= new QPushButton;
To copy to clipboard, switch view to plain text mode 
You can do:
Qt Code:
  1. //Where m_vecButtons is declare in the header as: QVector<QPushButton*> m_vecButtons;
  2. for(int iBtn = 0; iBtn<9; ++i){
  3. m_vecButtons.push_back(new QPushButton());
  4. }
To copy to clipboard, switch view to plain text mode 

You might also want to have a look at QSignalMapper .