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

📄 form1.cpp

📁 一个小的qt3程序
💻 CPP
字号:
/****************************************************************************** Form implementation generated from reading ui file 'form1.ui'**** Created: 五  7月 4 09:26:12 2008**      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.6   edited Aug 31 2005 $)**** WARNING! All changes made in this file will be lost!****************************************************************************/#include "form1.h"#include <qvariant.h>#include <qpushbutton.h>#include <qlayout.h>#include <qtooltip.h>#include <qwhatsthis.h>#include "../form1.ui.h"/* *  Constructs a Form1 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. */Form1::Form1( QWidget* parent, const char* name, bool modal, WFlags fl )    : QDialog( parent, name, modal, fl ){    if ( !name )	setName( "Form1" );    pushButton1 = new QPushButton( this, "pushButton1" );    pushButton1->setGeometry( QRect( 190, 60, 92, 40 ) );    QFont pushButton1_font(  pushButton1->font() );    pushButton1_font.setPointSize( 19 );    pushButton1->setFont( pushButton1_font );     pushButton2 = new QPushButton( this, "pushButton2" );    pushButton2->setGeometry( QRect( 30, 70, 81, 71 ) );    languageChange();    resize( QSize(312, 226).expandedTo(minimumSizeHint()) );    clearWState( WState_Polished );    // signals and slots connections    connect( pushButton1, SIGNAL( clicked() ), this, SLOT( newSlot() ) );}/* *  Destroys the object and frees any allocated resources */Form1::~Form1(){    // no need to delete child widgets, Qt does it all for us}/* *  Sets the strings of the subwidgets using the current *  language. */void Form1::languageChange(){    setCaption( tr( "Form1" ) );    pushButton1->setText( tr( "DIALOG" ) );    pushButton2->setText( QString::null );}

⌨️ 快捷键说明

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