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

📄 confirm.cpp

📁 学生管理系统 使用Qt写的界面 交互性好
💻 CPP
字号:
/****************************************************************************** Form implementation generated from reading ui file 'Confirm.ui'**** Created: 星期三 六月 27 07:14:25 2007**      by: The User Interface Compiler ()**** WARNING! All changes made in this file will be lost!****************************************************************************/#include "Confirm.h"#include <qvariant.h>#include <qlabel.h>#include <qpushbutton.h>#include <qlayout.h>#include <qtooltip.h>#include <qwhatsthis.h>#include <qimage.h>#include <qpixmap.h>/* *  Constructs a Form3 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. */Form3::Form3( QWidget* parent, const char* name, bool modal, WFlags fl )    : QDialog( parent, name, modal, fl ){    if ( !name )	setName( "Form3" );    textLabel5 = new QLabel( this, "textLabel5" );    textLabel5->setGeometry( QRect( 20, 20, 270, 20 ) );    QFont textLabel5_font(  textLabel5->font() );    textLabel5_font.setPointSize( 14 );    textLabel5->setFont( textLabel5_font );     pushButton40 = new QPushButton( this, "pushButton40" );    pushButton40->setGeometry( QRect( 170, 60, 92, 27 ) );    pushButton39 = new QPushButton( this, "pushButton39" );    pushButton39->setGeometry( QRect( 50, 60, 92, 27 ) );    languageChange();    resize( QSize(320, 94).expandedTo(minimumSizeHint()) );    clearWState( WState_Polished );    // signals and slots connections    connect( pushButton40, SIGNAL( clicked() ), this, SLOT( close() ) );    connect( pushButton39, SIGNAL( clicked() ), this, SLOT( close() ) );}/* *  Destroys the object and frees any allocated resources */Form3::~Form3(){    // no need to delete child widgets, Qt does it all for us}/* *  Sets the strings of the subwidgets using the current *  language. */void Form3::languageChange(){    setCaption( tr( "Confirm" ) );    textLabel5->setText( tr( "Are you absolutely sure?" ) );    pushButton40->setText( tr( "NO" ) );    pushButton39->setText( tr( "YES" ) );}

⌨️ 快捷键说明

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