定义好信号和槽函数:
private slots:
void val1();
void val2();
void val3();
void val4();
void val5();
void val6();
void val7();
void val8();
void val9();
void val0();
void valq();
void valw();
void vale();
void valr();
void valt();
void valy();
void valu();
void vali();
void valo();
void valp();
void vala();
void vals();
void vald();
void valf();
void valg();
void valh();
void valj();
void valk();
void vall();
void valz();
void valx();
void valc();
void valv();
void valb();
void valn();
void valm();
void valback();
void on_btnChr_clicked();
void on_btnCaps_clicked();
void on_btn_space_clicked();
void on_btnHide_clicked();
//软键盘
connect(ui->Btn_1,SIGNAL(clicked()),this,SLOT(val1()));
connect(ui->Btn_2,SIGNAL(clicked()),this,SLOT(val2()));
connect(ui->Btn_3,SIGNAL(clicked()),this,SLOT(val3()));
connect(ui->Btn_4,SIGNAL(clicked()),this,SLOT(val4()));
connect(ui->Btn_5,SIGNAL(clicked()),this,SLOT(val5()));
connect(ui->Btn_6,SIGNAL(clicked()),this,SLOT(val6()));
connect(ui->Btn_7,SIGNAL(clicked()),this,SLOT(val7()));
connect(ui->Btn_8,SIGNAL(clicked()),this,SLOT(val8()));
connect(ui->Btn_9,SIGNAL(clicked()),this,SLOT(val9()));
connect(ui->Btn_0,SIGNAL(clicked()),this,SLOT(val0()));
connect(ui->Btn_q,SIGNAL(clicked()),this,SLOT(valq()));
connect(ui->Btn_w,SIGNAL(clicked()),this,SLOT(valw()));
connect(ui->Btn_e,SIGNAL(clicked()),this,SLOT(vale()));
connect(ui->Btn_r,SIGNAL(clicked()),this,SLOT(valr()));
connect(ui->Btn_t,SIGNAL(clicked()),this,SLOT(valt()));
connect(ui->Btn_y,SIGNAL(clicked()),this,SLOT(valy()));
connect(ui->Btn_u,SIGNAL(clicked()),this,SLOT(valu()));
connect(ui->Btn_i,SIGNAL(clicked()),this,SLOT(vali()));
connect(ui->Btn_o,SIGNAL(clicked()),this,SLOT(valo()));
connect(ui->Btn_p,SIGNAL(clicked()),this,SLOT(valp()));
connect(ui->Btn_a,SIGNAL(clicked()),this,SLOT(vala()));
connect(ui->Btn_s,SIGNAL(clicked()),this,SLOT(vals()));
connect(ui->Btn_d,SIGNAL(clicked()),this,SLOT(vald()));
connect(ui->Btn_f,SIGNAL(clicked()),this,SLOT(valf()));
connect(ui->Btn_g,SIGNAL(clicked()),this,SLOT(valg()));
connect(ui->Btn_h,SIGNAL(