📄 form1.cpp
字号:
/****************************************************************************** Form implementation generated from reading ui file 'form1.ui'**** Created: Mon Aug 28 17:37:50 2006** by: The User Interface Compiler (uic)**** WARNING! All changes made in this file will be lost!****************************************************************************/#include "form1.h"#include <qbuttongroup.h>#include <qcheckbox.h>#include <qradiobutton.h>#include <qlayout.h>#include <qvariant.h>#include <qtooltip.h>#include <qwhatsthis.h>/* * Constructs a Form1 which is 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" ); resize( 233, 185 ); setCaption( tr( "Form1" ) ); ButtonGroup1 = new QButtonGroup( this, "ButtonGroup1" ); ButtonGroup1->setGeometry( QRect( 40, 30, 111, 131 ) ); ButtonGroup1->setTitle( tr( "ButtonGroup1" ) ); RadioButton1 = new QRadioButton( ButtonGroup1, "RadioButton1" ); RadioButton1->setGeometry( QRect( 30, 20, 51, 31 ) ); RadioButton1->setText( tr( "RadioButton1" ) ); CheckBox1 = new QCheckBox( ButtonGroup1, "CheckBox1" ); CheckBox1->setGeometry( QRect( 30, 60, 61, 41 ) ); CheckBox1->setText( tr( "CheckBox1" ) );}/* * Destroys the object and frees any allocated resources */Form1::~Form1(){ // no need to delete child widgets, Qt does it all for us}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -