资源简介
完整的qt学生信息系统程序实现包 保证满意 非常不错 基于qt 连接数据库

代码片段和文件信息
#include “addinfo.h“
#include “ui_addinfo.h“
#include “mysql.h“
AddInfo::AddInfo(QWidget *parent) :
QMainWindow(parent)
ui(new Ui::AddInfo)
{
Sparent=(StuInfoManage*) parent;
ui->setupUi(this);
}
AddInfo::~AddInfo()
{
delete ui;
}
void AddInfo::on_buttonBox_clicked(QAbstractButton *button)
{
if(ui->buttonBox->button(QDialogButtonBox::Ok) == button)
{
my_stu tran;
tran.account = ui->acount->text();
tran.name = ui->name->text();
tran.sex = ui->sex->currentText();
tran.age = ui->age->text().toInt();
tran.identify = ui->identify->text();
tran.tel = ui->tel->text();
tran.enroll_time = ui->enroll->text();
tran.leave_time = ui->leave->text();
tran.scondition = ui->condition->currentText();
tran.text = ui->textEdit->toPlainText();
QProgressDialog dialog(tr(“正在添加“)tr(“取消“) 0 30000 this);
dialog.setWindowtitle(tr(“进度“));
dialog.setWindowModality(Qt::WindowModal);
dialog.show();
for(int k = 0; k < 30000; k++)
{
dialog.setValue(k);
QCoreApplication::processEvents();
if(dialog.wasCanceled())
{
break;
}
}
dialog.setValue(30000);
MySql mysql;
bool ret = mysql.addstu(&tran);
if(ret == false)
{
QMessageBox::information(this tr(“消息“) tr(“添加失败!“) QMessageBox::Ok);
this->close();
Sparent->show();
return;
}
QMessageBox::information(this tr(“消息“) tr(“添加成功!“) QMessageBox::Ok);
this->close();
Sparent->show();
return;
}
else if(ui->buttonBox->button(QDialogButtonBox::Cancel) == button)
{
this->close();
QProgressDialog dialog(tr(“正在返回主界面“)tr(“取消“) 0 3000 this);
dialog.setWindowtitle(tr(“进度“));
dialog.setWindowModality(Qt::WindowModal);
dialog.show();
for(int k = 0; k < 3000; k++)
{
dialog.setValue(k);
QCoreApplication::processEvents();
if(dialog.wasCanceled())
{
break;
}
}
dialog.setValue(3000);
Sparent->show();
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-03-15 10:40 Student-Information-Manage-System-master\
文件 0 2018-03-15 10:40 Student-Information-Manage-System-master\README
文件 36 2018-03-15 10:40 Student-Information-Manage-System-master\README.md
文件 751 2018-03-15 10:40 Student-Information-Manage-System-master\StudentInfo.pro
文件 24100 2018-03-15 10:40 Student-Information-Manage-System-master\StudentInfo.pro.user
文件 2350 2018-03-15 10:40 Student-Information-Manage-System-master\addinfo.cpp
文件 701 2018-03-15 10:40 Student-Information-Manage-System-master\addinfo.h
文件 6935 2018-03-15 10:40 Student-Information-Manage-System-master\addinfo.ui
文件 2406 2018-03-15 10:40 Student-Information-Manage-System-master\changestuinfo.cpp
文件 514 2018-03-15 10:40 Student-Information-Manage-System-master\changestuinfo.h
文件 6949 2018-03-15 10:40 Student-Information-Manage-System-master\changestuinfo.ui
文件 2760 2018-03-15 10:40 Student-Information-Manage-System-master\logging.cpp
文件 458 2018-03-15 10:40 Student-Information-Manage-System-master\logging.h
文件 2235 2018-03-15 10:40 Student-Information-Manage-System-master\logging.ui
文件 303 2018-03-15 10:40 Student-Information-Manage-System-master\main.cpp
文件 1467 2018-03-15 10:40 Student-Information-Manage-System-master\mainwindow.cpp
文件 621 2018-03-15 10:40 Student-Information-Manage-System-master\mainwindow.h
文件 2239 2018-03-15 10:40 Student-Information-Manage-System-master\mainwindow.ui
文件 340 2018-03-15 10:40 Student-Information-Manage-System-master\manage.cpp
文件 306 2018-03-15 10:40 Student-Information-Manage-System-master\manage.h
文件 3091 2018-03-15 10:40 Student-Information-Manage-System-master\manage.ui
文件 6572 2018-03-15 10:40 Student-Information-Manage-System-master\mysql.cpp
文件 1207 2018-03-15 10:40 Student-Information-Manage-System-master\mysql.h
文件 2724 2018-03-15 10:40 Student-Information-Manage-System-master\register.cpp
文件 489 2018-03-15 10:40 Student-Information-Manage-System-master\register.h
文件 2799 2018-03-15 10:40 Student-Information-Manage-System-master\register.ui
文件 3364 2018-03-15 10:40 Student-Information-Manage-System-master\stuinfomanage.cpp
文件 489 2018-03-15 10:40 Student-Information-Manage-System-master\stuinfomanage.h
文件 2551 2018-03-15 10:40 Student-Information-Manage-System-master\stuinfomanage.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 霍夫曼编码 压缩 解压缩
评论
共有 条评论