资源简介
一个电话簿的小项目,适合新手入手,仅仅上传了源代码,具体教程可以联系我讨论讨论

代码片段和文件信息
#include “finddialog.h“
#include
#include
#include
#include
FindDialog::FindDialog(QWidget *parent): QDialog(parent)
{
QLabel *findLabel = new QLabel(tr(“Enter the name of a contact:“));
lineEdit = new QLineEdit;
findButton = new QPushButton(tr(“&Find“));
findText = ““;
QHBoxLayout *layout = new QHBoxLayout;
layout->addWidget(findLabel);
layout->addWidget(lineEdit);
layout->addWidget(findButton);
setLayout(layout);
setWindowtitle(tr(“Find a Contact“));
connect(findButton SIGNAL(clicked()) this SLOT(FindDialog::findClicked()));
connect(findButton SIGNAL(clicked()) this SLOT(accept()));
}
void FindDialog::findClicked()
{ QString text = lineEdit->text();
if (text.isEmpty()) {
QMessageBox::information(this tr(“Empty Field“) tr(“Please enter a name.“)); return;
} else {
findText = text;
lineEdit->clear();
hide();
}
}
QString FindDialog::getFindText() { return findText; }
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-07-07 01:35 addressBooks\
文件 1100 2018-07-07 00:24 addressBooks\addressBooks.pro
文件 23972 2018-07-07 01:35 addressBooks\addressBooks.pro.user
文件 1110 2018-07-07 01:05 addressBooks\finddialog.cpp
文件 441 2018-07-07 01:00 addressBooks\finddialog.h
文件 288 2018-07-07 00:22 addressBooks\finddialog.ui
文件 235 2018-07-07 00:40 addressBooks\main.cpp
文件 9897 2018-07-07 01:34 addressBooks\mainwindow.cpp
文件 1091 2018-07-07 01:31 addressBooks\mainwindow.h
文件 7504 2018-07-07 01:31 addressBooks\mainwindow.ui
相关资源
- 酒店管理系统基于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 霍夫曼编码 压缩 解压缩
评论
共有 条评论