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

📄 passwdform.cpp

📁 简单的基于文件的数据库小程序
💻 CPP
字号:
/****************************************************************************** Form implementation generated from reading ui file 'passwdform.ui'**** Created by: The User Interface Compiler ($Id: qt/main.cpp   3.3.8   edited Jan 11 14:47 $)**** WARNING! All changes made in this file will be lost!****************************************************************************/#include "passwdform.h"#include <qvariant.h>#include <qlabel.h>#include <qpushbutton.h>#include <qlineedit.h>#include <qlayout.h>#include <qtooltip.h>#include <qwhatsthis.h>#include <qimage.h>#include <qpixmap.h>#include "../passwdform.ui.h"/* *  Constructs a passwdForm 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. */passwdForm::passwdForm( QWidget* parent, const char* name, bool modal, WFlags fl )    : QDialog( parent, name, modal, fl ){    if ( !name )	setName( "passwdForm" );    setIcon( QPixmap::fromMimeSource( "main.png" ) );    password = new QLabel( this, "password" );    password->setGeometry( QRect( 70, 60, 70, 31 ) );    pushButton1 = new QPushButton( this, "pushButton1" );    pushButton1->setGeometry( QRect( 241, 120, 100, 31 ) );    Lable1 = new QLabel( this, "Lable1" );    Lable1->setGeometry( QRect( 70, 10, 70, 30 ) );    userName = new QLineEdit( this, "userName" );    userName->setGeometry( QRect( 160, 10, 181, 31 ) );    passwd = new QLineEdit( this, "passwd" );    passwd->setGeometry( QRect( 160, 60, 181, 31 ) );    passwd->setEchoMode( QLineEdit::Password );    languageChange();    resize( QSize(407, 155).expandedTo(minimumSizeHint()) );    clearWState( WState_Polished );    // signals and slots connections    connect( pushButton1, SIGNAL( clicked() ), this, SLOT( checkPasswd() ) );    // tab order    setTabOrder( userName, passwd );    setTabOrder( passwd, pushButton1 );}/* *  Destroys the object and frees any allocated resources */passwdForm::~passwdForm(){    // no need to delete child widgets, Qt does it all for us}/* *  Sets the strings of the subwidgets using the current *  language. */void passwdForm::languageChange(){    setCaption( tr( "Input Your Password" ) );    password->setText( tr( "Password" ) );    pushButton1->setText( tr( "OK" ) );    Lable1->setText( tr( "Username" ) );}

⌨️ 快捷键说明

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