⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 addscore.cpp

📁 学生管理系统 使用Qt写的界面 交互性好
💻 CPP
字号:
/****************************************************************************** Form implementation generated from reading ui file 'AddScore.ui'**** Created: 星期三 六月 27 09:13:28 2007**      by: The User Interface Compiler ()**** WARNING! All changes made in this file will be lost!****************************************************************************/#include "AddScore.h"#include <qvariant.h>#include <qlineedit.h>#include <qlabel.h>#include <qpushbutton.h>#include <qlayout.h>#include <qtooltip.h>#include <qwhatsthis.h>#include <qimage.h>#include <qpixmap.h>#include "AddScore.ui.h"/* *  Constructs a Form7 as a child of 'parent', with the *  name 'name' and widget flags set to 'f'. * *  The dialog will by default be modeless, unless you set 'modal' to *  TRUE to construct a modal dialog. */Form7::Form7( QWidget* parent, const char* name, bool modal, WFlags fl )    : QDialog( parent, name, modal, fl ){    if ( !name )	setName( "Form7" );    setIcon( QPixmap::fromMimeSource( "ADD.png" ) );    lineEdit104 = new QLineEdit( this, "lineEdit104" );    lineEdit104->setGeometry( QRect( 110, 60, 200, 21 ) );    lineEdit104->setFrameShape( QLineEdit::LineEditPanel );    lineEdit104->setFrameShadow( QLineEdit::Sunken );    lineEdit105 = new QLineEdit( this, "lineEdit105" );    lineEdit105->setGeometry( QRect( 110, 100, 120, 21 ) );    textLabel11 = new QLabel( this, "textLabel11" );    textLabel11->setGeometry( QRect( 20, 20, 69, 20 ) );    textLabel12 = new QLabel( this, "textLabel12" );    textLabel12->setGeometry( QRect( 20, 60, 69, 20 ) );    textLabel13 = new QLabel( this, "textLabel13" );    textLabel13->setGeometry( QRect( 20, 100, 69, 20 ) );    pushButton157 = new QPushButton( this, "pushButton157" );    pushButton157->setGeometry( QRect( 280, 140, 99, 27 ) );    pushButton156 = new QPushButton( this, "pushButton156" );    pushButton156->setGeometry( QRect( 60, 140, 99, 27 ) );    lineEdit103 = new QLineEdit( this, "lineEdit103" );    lineEdit103->setGeometry( QRect( 110, 20, 200, 21 ) );    lineEdit103->setFrameShape( QLineEdit::LineEditPanel );    lineEdit103->setFrameShadow( QLineEdit::Sunken );    pushButton169 = new QPushButton( this, "pushButton169" );    pushButton169->setGeometry( QRect( 170, 140, 99, 27 ) );    languageChange();    resize( QSize(401, 190).expandedTo(minimumSizeHint()) );    clearWState( WState_Polished );    // signals and slots connections    connect( pushButton157, SIGNAL( clicked() ), this, SLOT( close() ) );    connect( pushButton156, SIGNAL( clicked() ), this, SLOT( Add() ) );    connect( pushButton169, SIGNAL( clicked() ), this, SLOT( Add() ) );}/* *  Destroys the object and frees any allocated resources */Form7::~Form7(){    // no need to delete child widgets, Qt does it all for us}/* *  Sets the strings of the subwidgets using the current *  language. */void Form7::languageChange(){    setCaption( tr( "ADD" ) );    textLabel11->setText( tr( "StudentID" ) );    textLabel12->setText( tr( "CourseID" ) );    textLabel13->setText( tr( "Grade" ) );    pushButton157->setText( tr( "Cancel" ) );    pushButton156->setText( tr( "ADD" ) );    pushButton169->setText( tr( "Modify" ) );}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -