资源简介
Ubuntu环境下自己编写的Qt模拟软键盘,带回显功能
代码片段和文件信息
#include “keyboard.h“
#include “ui_keyboard.h“
#include
#include
#include
QString buff;
int i=0flag;
KeyBoard::KeyBoard(QWidget *parent) :
QDialog(parent)
ui(new Ui::KeyBoard)
{
ui->setupUi(this);
QSignalMapper *mapper = new QSignalMapper(this);
mapper->setMapping(ui->bCaps“Caps“);
mapper->setMapping(ui->b0“0“);
mapper->setMapping(ui->b1“1“);
mapper->setMapping(ui->b2“2“);
mapper->setMapping(ui->b3“3“);
mapper->setMapping(ui->b4“4“);
mapper->setMapping(ui->b5“5“);
mapper->setMapping(ui->b6“6“);
mapper->setMapping(ui->b7“7“);
mapper->setMapping(ui->b8“8“);
mapper->setMapping(ui->b9“9“);
mapper->setMapping(ui->b_“_“);
mapper->setMapping(ui->bpnt“.“);
mapper->setMapping(ui->bdel“del“);
mapper->setMapping(ui->bat“@“);
mapper->setMapping(ui->bq“q“);
mapper->setMapping(ui->bw“w“);
mapper->setMapping(ui->be“e“);
mapper->setMapping(ui->br“r“);
mapper->setMapping(ui->bt“t“);
mapper->setMapping(ui->by“y“);
mapper->setMapping(ui->bu“u“);
mapper->setMapping(ui->bi“i“);
mapper->setMapping(ui->bo“o“);
mapper->setMapping(ui->bp“p“);
mapper->setMapping(ui->ba“a“);
mapper->setMapping(ui->bs“s“);
mapper->setMapping(ui->bd“d“);
mapper->setMapping(ui->bf“f“);
mapper->setMapping(ui->bg“g“);
mapper->setMapping(ui->bh“h“);
mapper->setMapping(ui->bj“j“);
mapper->setMapping(ui->bk“k“);
mapper->setMapping(ui->bl“l“);
mapper->setMapping(ui->bz“z“);
mapper->setMapping(ui->bx“x“);
mapper->setMapping(ui->bc“c“);
mapper->setMapping(ui->bv“v“);
mapper->setMapping(ui->bb“b“);
mapper->setMapping(ui->bn“n“);
mapper->setMapping(ui->bm“m“);
connect(ui->b0SIGNAL(clicked())mapperSLOT(map()));
connect(ui->b1SIGNAL(clicked())mapperSLOT(map()));
connect(ui->b2SIGNAL(clicked())mapperSLOT(map()));
connect(ui->b3SIGNAL(clicked())mapperSLOT(map()));
connect(ui->b4SIGNAL(clicked())mapperSLOT(map()));
connect(ui->b5SIGNAL(clicked())mapperSLOT(map()));
connect(ui->b6SIGNAL(clicked())mapperSLOT(map()));
connect(ui->b7SIGNAL(clicked())mapperSLOT(map()));
connect(ui->b8SIGNAL(clicked())mapperSLOT(map()));
connect(ui->b9SIGNAL(clicked())mapperSLOT(map()));
connect(ui->batSIGNAL(clicked())mapperSLOT(map()));
connect(ui->bdelSIGNAL(clicked())mapperSLOT(map()));
connect(ui->b_SIGNAL(clicked())mapperSLOT(map()));
connect(ui->bpntSIGNAL(clicked())mapperSLOT(map()));
connect(ui->bCapsSIGNAL(clicked())mapperSLOT(map()));
connect(ui->bwSIGNAL(clicked())mapperSLOT(map()));
connect(ui->beSIGNAL(clicked())mapperSLOT(map()));
connect(ui->brSIGNAL(clicked())mapperSLOT(map()));
connect(ui->btSIGNAL(clicked())mapperSLOT(ma
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
I.A.... 5462 2015-08-27 16:27 Qt模拟软键盘\qt_keyboard2\qt_keyboard\keyboard.cpp
I.A.... 342 2015-08-26 17:47 Qt模拟软键盘\qt_keyboard2\qt_keyboard\keyboard.h
I.A.... 364656 2015-09-29 14:31 Qt模拟软键盘\qt_keyboard2\qt_keyboard\keyboard.o
I.A.... 12582 2015-09-29 21:48 Qt模拟软键盘\qt_keyboard2\qt_keyboard\keyboard.ui
I.A.... 174 2015-08-26 16:00 Qt模拟软键盘\qt_keyboard2\qt_keyboard\main.cpp
I.A.... 133912 2015-09-29 14:31 Qt模拟软键盘\qt_keyboard2\qt_keyboard\main.o
I.A.... 7290 2015-09-29 14:31 Qt模拟软键盘\qt_keyboard2\qt_keyboard\Makefile
I.A.... 2323 2015-09-29 14:31 Qt模拟软键盘\qt_keyboard2\qt_keyboard\moc_keyboard.cpp
I.A.... 147592 2015-09-29 14:31 Qt模拟软键盘\qt_keyboard2\qt_keyboard\moc_keyboard.o
I.A.... 419636 2015-09-29 14:31 Qt模拟软键盘\qt_keyboard2\qt_keyboard\qt_keyboard
I.A.... 309 2015-08-26 16:00 Qt模拟软键盘\qt_keyboard2\qt_keyboard\qt_keyboard.pro
I.A.... 36017 2015-10-09 15:11 Qt模拟软键盘\qt_keyboard2\qt_keyboard\qt_keyboard.pro.user
I.A.... 12023 2015-09-29 14:31 Qt模拟软键盘\qt_keyboard2\qt_keyboard\ui_keyboard.h
I..D... 0 2015-10-09 18:05 Qt模拟软键盘\qt_keyboard2\qt_keyboard
I..D... 0 2015-09-29 14:22 Qt模拟软键盘\qt_keyboard2\qt_keyboard-build-desktop
I..D... 0 2015-10-09 18:05 Qt模拟软键盘\qt_keyboard2
I..D... 0 2015-10-09 18:05 Qt模拟软键盘
----------- --------- ---------- ----- ----
1142318 17
- 上一篇:压力测量系统
- 下一篇:IE tab for chrome
相关资源
- QT音乐播放器120395
- Qt界面多线程opencv调用摄像头
- QWebEngineView实现聊天窗
- QT 小游戏 加农炮 源码 +教程刚刚把源
- qt可以使用的AES加密的类
-
Qt/em
bedded的嵌入式导航电子地图实 - Qt静态库的生成及调用
- 智慧大棚QT界面设计
- QT水波进度条DEMO
- qt designer
- OpenCV 3和Qt5计算机视觉应用开发_源码
- Qt高仿网易云音乐界面源码
- 基于QWebEngineView浏览器-Qt5源码
- Qt读取PDF文档代码qt-poppler
- TCP聊天室,客户端,服务器
- Qt 图片缩放,支持滚轮和按键缩放
- 基于QT编写的GPS卫星定位上位机软件
- QtWifiTestDemo
- 端口扫描器
- Qt5.9c开发指南.pdf代码.zip
- QGLViewer_lib_dll
-
基于S3C2410和Qt_em
bedded的数码相框设 - Qt制作数字软件盘
- Qt编写的速度仪表盘
- STM32基于GPRS以mqtt协议与onenet通信
- qt 绘制流程图程序——Diagram
- QT5.5.1静态编译库(VS2013).txt
- 嵌入式课程设计QT完美实现任意进制运
- QT 程序 删除文本文件中某一行
- QT自绘开关按钮
评论
共有 条评论