资源简介
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 Creator5)
- vtk QT做的三维地质可视化系统2of2
- Qt局域网聊天软件
- Qt Creator opengl实现四元数鼠标控制轨迹
- QT局域网聊天系统(基于QT5.修改过)
- qt-电子点菜系统
- C 餐厅叫号系统(QT平)
- QT 实现文件下载
- qt图像处理
- QT,JPEG解码源代码(已完成)
- Qt 播放音频文件
- Qt 读取16进制的data文件
- MQTT+串口(usart)透传
- 易语言QQTEA算法源码
- VC工程转Qt工程文件的工具
- MQTT推送Demo
- 基于Linux、QT的视频监控系统的设计与
- Qt 百度地图 定位
- QT酷炫界面开发指南《QmlBook》
- Ubuntu下操作Excel,qt代码
- Qt图片浏览器 --基于Qt的Graphics View f
- qtnribbon2破解
- Qt软件开发 完整项目代码
- MQTT_3.1protocol_Specific中文版
- 在QT中使用RTP进行视频的采集和传输
- Mini6410 Qt4和Qtopia编程开发指南
- Qt实现Code39条形码
- qt_ffmpeg_mp4_export_and_import.zip
- QT5.5入门与项目实战
- Huffman Compress 霍夫曼编码 压缩 解压缩
评论
共有 条评论