资源简介

一个“学生信息管理系统”期末作业。基于qt5,用sqlite存储。有一个公共登录窗口,管理员和用户两种身份。管理员管理学生信息基本信息,可添加多个管理员。学生用户查看自己信息,如果自己信息有变动可修改自身的信息。是个实用性比较强的系统,适合qt入门学习者学习。

资源截图

代码片段和文件信息

#include “adminface.h“
#include “ui_adminface.h“
#include “QSqlDatabase“
#include “QSqlError“
#include “QDebug“
#include 
#include
#include
#include“login.h“
#include“all_login_zhanghao_password.h“
adminFace::adminFace(QWidget *parent) :
    QDialog(parent)
    ui(new Ui::adminFace)
{
    ui->setupUi(this);
    QLabel *lab= ui->label_2;
    lab->setText(“当前管理员:“+login_zhanghao);
    //添加背景图片的代码
         this->setAutoFillBackground(true);
         QPalette palette;
         QPixmap pixmap(“:/pic/cc.jpg“);
         palette.setBrush(QPalette::Window QBrush(pixmap));
         this->setPalette(palette);
     //去除按键边框
         ui->pushButton->setstyleSheet(“border:none;“);
         ui->pushButton_2->setstyleSheet(“border:none;“);
         ui->pushButton_3->setstyleSheet(“border:none;“);
         ui->pushButton_4->setstyleSheet(“border:none;“);
         ui->pushButton_5->setstyleSheet(“border:none;“);
}

adminFace::~adminFace()
{
    delete ui;
}
//student表
void adminFace::on_pushButton_clicked()
{
    studentTableShow=new admin_student_show;
    studentTableShow->setModal(true);
    studentTableShow->show();
}
//admin表
void adminFace::on_pushButton_2_clicked()
{
    adminTableShow=new admin_admin_show;
    adminTableShow->setModal(true);
    adminTableShow->show();
}
//class表
void adminFace::on_pushButton_3_clicked()
{
    classTableShow=new admin_class_show;
    classTableShow->setModal(true);
    classTableShow->show();
}
//快速查找
void adminFace::on_pushButton_4_clicked()
{
    findTableShow=new admin_find_show;
    findTableShow->setModal(true);
    findTableShow->show();
}
//退出管理员界面
void adminFace::on_pushButton_5_clicked()
{
    this->close();
    Login *login=new Login;
    login->show();

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2020-08-26 10:58  StudentInformationManagementSystem\
     文件        1972  2019-12-16 21:30  StudentInformationManagementSystem\StudentInformationManagementSystem.pro
     文件       48253  2020-08-26 10:58  StudentInformationManagementSystem\StudentInformationManagementSystem.pro.user
     文件        5203  2020-01-12 11:26  StudentInformationManagementSystem\admin_admin_show.cpp
     文件         554  2019-12-17 14:35  StudentInformationManagementSystem\admin_admin_show.h
     文件        4048  2020-01-12 12:16  StudentInformationManagementSystem\admin_admin_show.ui
     文件         192  2019-12-09 15:30  StudentInformationManagementSystem\admin_auccessful_face.cpp
     文件         296  2019-12-09 15:30  StudentInformationManagementSystem\admin_auccessful_face.h
     文件        3084  2020-01-12 14:09  StudentInformationManagementSystem\admin_class_add.cpp
     文件         437  2019-12-14 15:36  StudentInformationManagementSystem\admin_class_add.h
     文件        5649  2020-01-12 13:54  StudentInformationManagementSystem\admin_class_add.ui
     文件        3842  2020-01-12 14:31  StudentInformationManagementSystem\admin_class_show.cpp
     文件         842  2020-01-12 13:55  StudentInformationManagementSystem\admin_class_show.h
     文件        3017  2020-01-12 13:57  StudentInformationManagementSystem\admin_class_show.ui
     文件        4131  2020-01-12 14:10  StudentInformationManagementSystem\admin_class_update.cpp
     文件         500  2019-12-14 17:05  StudentInformationManagementSystem\admin_class_update.h
     文件        6397  2020-01-12 13:52  StudentInformationManagementSystem\admin_class_update.ui
     文件        8387  2020-08-26 10:53  StudentInformationManagementSystem\admin_find_show.cpp
     文件         395  2019-12-17 13:50  StudentInformationManagementSystem\admin_find_show.h
     文件       12011  2020-01-12 12:25  StudentInformationManagementSystem\admin_find_show.ui
     文件        3523  2020-01-12 14:09  StudentInformationManagementSystem\admin_student_add.cpp
     文件         453  2019-12-15 00:12  StudentInformationManagementSystem\admin_student_add.h
     文件        8537  2020-01-12 11:34  StudentInformationManagementSystem\admin_student_add.ui
     文件        4011  2020-01-12 14:33  StudentInformationManagementSystem\admin_student_show.cpp
     文件         989  2020-01-12 14:26  StudentInformationManagementSystem\admin_student_show.h
     文件        3013  2020-01-12 14:28  StudentInformationManagementSystem\admin_student_show.ui
     文件        5103  2020-01-12 14:09  StudentInformationManagementSystem\admin_student_updata.cpp
     文件         516  2019-12-14 17:26  StudentInformationManagementSystem\admin_student_updata.h
     文件        9792  2020-01-12 11:40  StudentInformationManagementSystem\admin_student_updata.ui
     文件        1896  2020-01-12 14:19  StudentInformationManagementSystem\adminface.cpp
     文件         845  2019-12-13 20:03  StudentInformationManagementSystem\adminface.h
............此处省略28个文件信息

评论

共有 条评论