• 大小: 8.03KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-02-23
  • 标签: 键盘  数字  设计  

资源简介


资源截图

代码片段和文件信息

#include “keyboard.h“
#include “ui_keyboard.h“
#include 
QString text[]={“1““2““3““4““5““6““7““8““9““.“};
keyboard::keyboard(QWidget *parent) :
    QWidget(parent)
    ui(new Ui::keyboard)
{
    ui->setupUi(this);
    signalMapper=new QSignalMapper(this);
    ui->lineEdit_window->setFocus();
    setMapper();
    connectMapper();
    connect(signalMapperSIGNAL(mapped(const QString&))thisSLOT(setDispText(const QString&)));
    connect(ui->pushButton_okSIGNAL(clicked())thisSLOT(onEnter()));
    connect(ui->pushButton_12SIGNAL(clicked())thisSLOT(onBackspace()));
}

keyboard::~keyboard()
{
    delete ui;
}

void keyboard::setMapper()
{

  signalMapper->setMapping(ui->pushButtonui->pushButton->text());
  signalMapper->setMapping(ui->pushButton_2ui->pushButton_2->text());
  signalMapper->setMapping(ui->pushButton_3ui->pushButton_3->text());
  signalMapper->setMapping(ui->pushButton_4ui->pushButton_4->text());
  signalMapper->setMapping(ui->pushButton_5ui->pushBu

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       2687  2020-01-19 15:37  test6\keyboard.cpp

     文件        550  2020-01-19 14:15  test6\keyboard.h

     文件       4161  2020-01-19 09:26  test6\keyboard.ui

     文件        166  2020-01-17 16:26  test6\main.cpp

     文件       1736  2020-01-19 16:07  test6\mainwin.cpp

     文件        561  2020-01-19 16:05  test6\mainwin.h

     文件       1930  2020-01-19 15:43  test6\mainwin.ui

     文件        224  2020-01-17 16:35  test6\mylineedit.cpp

     文件        300  2020-01-17 16:34  test6\mylineedit.h

     文件        180  2020-01-19 15:42  test6\photo.cpp

     文件        243  2020-01-19 15:42  test6\photo.h

     文件        380  2020-01-19 15:42  test6\photo.ui

     文件       1146  2020-01-19 15:42  test6\test6.pro

     文件      50607  2020-01-19 10:32  test6\test6.pro.user

     目录          0  2020-01-20 09:37  test6

----------- ---------  ---------- -----  ----

                64871                    15


评论

共有 条评论