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

📄 lzp.cpp

📁 随机产生四个不同数字(如 1234)
💻 CPP
字号:
/****************************************************************************** Form implementation generated from reading ui file 'lzp.ui'**** Created: 二 12月 30 14:49:05 2008**      by: The User Interface Compiler ($Id: qt/main.cpp   3.1.1   edited Nov 21 17:40 $)**** WARNING! All changes made in this file will be lost!****************************************************************************/#include "lzp.h"#include <qvariant.h>#include <qlistbox.h>#include <qpushbutton.h>#include <qspinbox.h>#include <qlayout.h>#include <qtooltip.h>#include <qwhatsthis.h>#include <qimage.h>#include <qpixmap.h>#include "../lzp.ui.h"/*  *  Constructs a lzp 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. */lzp::lzp( QWidget* parent, const char* name, bool modal, WFlags fl )    : QDialog( parent, name, modal, fl ){    if ( !name )	setName( "lzp" );    STARTButton = new QPushButton( this, "STARTButton" );    STARTButton->setGeometry( QRect( 20, 30, 80, 31 ) );    spinBox3 = new QSpinBox( this, "spinBox3" );    spinBox3->setGeometry( QRect( 170, 80, 52, 22 ) );    spinBox2 = new QSpinBox( this, "spinBox2" );    spinBox2->setGeometry( QRect( 100, 80, 52, 22 ) );    spinBox1 = new QSpinBox( this, "spinBox1" );    spinBox1->setGeometry( QRect( 30, 80, 52, 22 ) );    spinBox4 = new QSpinBox( this, "spinBox4" );    spinBox4->setGeometry( QRect( 250, 80, 52, 22 ) );    listBox = new QListBox( this, "listBox" );    listBox->setGeometry( QRect( 30, 120, 270, 130 ) );    GUESSButton = new QPushButton( this, "GUESSButton" );    GUESSButton->setEnabled( FALSE );    GUESSButton->setGeometry( QRect( 120, 30, 80, 31 ) );    HELPButton = new QPushButton( this, "HELPButton" );    HELPButton->setEnabled( FALSE );    HELPButton->setGeometry( QRect( 220, 30, 80, 31 ) );    languageChange();    resize( QSize(347, 314).expandedTo(minimumSizeHint()) );    // signals and slots connections    connect( STARTButton, SIGNAL( clicked() ), this, SLOT( starts() ) );    connect( GUESSButton, SIGNAL( clicked() ), this, SLOT( guess() ) );    connect( HELPButton, SIGNAL( clicked() ), this, SLOT( tureN() ) );}/* *  Destroys the object and frees any allocated resources */lzp::~lzp(){    // no need to delete child widgets, Qt does it all for us}/* *  Sets the strings of the subwidgets using the current *  language. */void lzp::languageChange(){    setCaption( tr( "caizi" ) );    STARTButton->setText( tr( "START" ) );    GUESSButton->setText( tr( "GUESS" ) );    HELPButton->setText( tr( "HELP" ) );}

⌨️ 快捷键说明

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